Weird characters added to first column name after reading a toad-exported csv file

前端 未结 4 926
后悔当初
后悔当初 2020-12-29 02:50

Whenever I read a csv file in R (read.csv(\"file_name.csv\")) that was exported using toad, the first column name is preceded by the following char

4条回答
  •  庸人自扰
    2020-12-29 03:27

    I know this is a very old question, but the easiest solution I have found, is to use NotePad++. Open the CSV file in NotePad++, click "Encoding" and select "Encode in UTF-8" and save the file. It removes the BOM, and the original code should work.

提交回复
热议问题