Hello,
I wanted to parse some information from a text, where fields are tab
separated.
When I copy the text into an R session (under emacs) like:
mystring <- "field1 field2 field3"
the tab character is replaced by a single space!
For ex, if I type mystring, I get:
"field1 field2 field3"
The tabs have disappeared!!!
I checked with Python that the text I copied was tab separated indeed
so I did the same, in a Python session:
mystring = "field1 field2 field3"
and when I type mystring, I get the expected:
"field1\tfield2\tfield3"
I am quite new to R, and there is something I am missing here.
Any light will be highly appreciated.
Regards
Johnny
[[alternative HTML version deleted]]
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.