Displaying 1 result from an estimated 1 matches for "cj01".
Did you mean:
c01
2018 Feb 04
1
Unexpected behaviour from read.table
...ider where strings are encoded as =?content?. Not sure why, perhaps as most users open it in Excel.
My specific issue is that trailing spaces in any of the strings are causing strange results from read.table
# No trailing spaces
read.table(text="ID\tValue\n=\"Total\"\t1000\n=\"CJ01\"\t550\n=\"CF02\"\t450",header=FALSE,sep='\t?)
V1 V2
1 ID Value
2 =Total 1000
3 =CJ01 550
4 =CF02 450
# Now with trailing spaces in line 3
read.table(text="ID\tValue\n=\"Total\"\t1000\n=\"CJ01 \"\t550\n=\"CF02\"\t450&...