Importing “csv” file with multiple-character separator to R?

后端 未结 2 1569
悲哀的现实
悲哀的现实 2020-12-03 16:15

I have a \"csv\" text file where each field is separated by \\t&%$# which I\'m now trying to import into R.

The sep= argument of

2条回答
  •  北海茫月
    2020-12-03 16:56

    As explained in this post, it is not possible in R without resorting to string parsing. You can pre-parse your file in another language (Awk, Perl, Python etc.) or read it line-by-line and parse the resulting strings in R.

提交回复
热议问题