Skip to content
Prev 3240 / 398500 Next

read.table bug

Li Dongfeng <mavip5 at inet.polyu.edu.hk> writes:
Splus 3.4 has:
V2  V3 V4 
  "Smith   John\" 120 90
"Thomson  Peter\" 110 85

i.e. 3 variables but with row.names '"Smith' and '"Thomson'

Or, closer to what R does:
V1       V2  V3 V4 
1   \"Smith   John\" 120 90
2 \"Thomson  Peter\" 110 85

By its definition, this is what sep=',' must do, but it obviously will
not handle all CSV files properly. Anyone want to write a read.csv()
function or something of the sorts? It would be very useful.