How to read a .csv file containing apostrophes into R?

前端 未结 3 741
故里飘歌
故里飘歌 2021-02-06 22:51

I am having difficulty getting R to read a .txt or .csv file that contains apostrophes.

Some of my columns contain descriptive text, such as \"Attends to customers\' n

3条回答
  •  闹比i
    闹比i (楼主)
    2021-02-06 23:22

    Setting the parameter quote="\\" in read.table should do the trick.

提交回复
热议问题