[R] Cannot get "==" operator to return TRUE

peter dalgaard pdalgd at gmail.com
Fri Feb 3 17:39:19 CET 2012


On Feb 3, 2012, at 17:23 , G See wrote:

> Thank you Duncan, that is very helpful.
> 
> Although I think we've got it sorted out now, to answer your previous
> questions,  it is repeatable in a new R session, and the output of
> charToRaw is below.
> 
> On Ubuntu, I get the following:
>> charToRaw(x)
> [1] 6e 2f 61 c2 a0

So that's a nonbreak space alright. Next question: How did it get there? I'm mildly surprised that it crept into the data frame, I would expect it to happen much easier with things typed on the keyboard (Alt-Spc on my Mac keyboard, e.g.).

-- 
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Email: pd.mes at cbs.dk  Priv: PDalgd at gmail.com



More information about the R-help mailing list