Displaying 1 result from an estimated 1 matches for "hidemaru".
Did you mean:
hedemark
2010 Feb 03
0
"read.table" and "scan" skips newlines which "count.fields" finds in Thai textfile
...e within the first item ("\n").
> read.table("my.txt", encoding="UTF-8", header=F, sep="\t", quote="")
[1] V1
<0 rows> (or 0-length row.names)
Zero items.
I just reduced my file to zero.
Needless to say, my editors show 3 lines (Vim, Em, Hidemaru)
Hex dump shows the newline chars clearly (see below).
I have seen related questions but not the solution:
e.g.
http://n4.nabble.com/problem-with-scan-recognizing-newline-n-td896114.html#a896115
And just for fun :
R>read.table("my.txt", encoding="justkidding")
[1] V1
<...