Re: [R] Read txt File contains character ""
peter dalgaard
pdalgd at gmail.com
Tue Jun 5 10:09:47 CEST 2012
On Jun 5, 2012, at 08:42 , climmi wrote:
> Thank you ! Rui Barradas .
>
> Yes, the arrow character "" can not be recoginised by R.
> the character will be treat as a stop command...
> So I replace all the character "" with space, then it works..
> Just want to know is there any way for R to handle it.
To paraphrase Brian, you're likely the victim of your unstated operating system...
Hex 1a is ctr-Z, alias the end-of-file marker, which dates back from CP/M times and was never excised from the various Microsoft OS. R can't handle it because the OS is telling it that the file has ended.
Opening the file in binary mode (?file) might help, but as I'm not on Windows, I can't easily check for you.
>
> Not sure does eveybody able to view the character, it's looks like this.
> http://r.789695.n4.nabble.com/file/n4632369/arrow.png
--
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