> fread('col1,col2\n')
Empty data.table (0 rows) of 2 cols: col1,col2
> fread('col1,col2\n5,4')
col1 col2
1: 5 4
> fread('col1,col2\n5,"4\n3"')
Error in fread("col1,col2\n5,\"4\n3\"") :
Unbalanced quote (") observed on this line: 3"
>
read.csv can import this csv as long as the value that spans multiple lines is wrapped in quotes.
Should fread be able to import it as well? Using read.csv is actually fine for my use case. I can just convert the resulting data frame into a data table. But I just wanted to make sure that not having this functionality was a design decision, and not something that just wasn't yet tested.
\n
issue is also covered? I think I just faced this exact problem withdata.table_1.9.2
onR 3.1.0 x86_64-unknown-linux-gnu
. – Tarantass