Importing csv file to R new line issue

后端 未结 1 1108
执笔经年
执笔经年 2020-12-21 02:24

I have a csv file which has a text field that contains new line character \'\\n\', so i cannot correctly import this file into R. My csv end of line is actually \'\\r\\n\' a

相关标签:
1条回答
  • 2020-12-21 02:41

    In a lot of csv handling implementations, you have to escape fields that have \n and other such codes, usually with quotes or double-quotes. Such as 'this is\nan example'

    0 讨论(0)
提交回复
热议问题