How to load df with 1000 separator in R as numeric class?

前端 未结 3 524
猫巷女王i
猫巷女王i 2020-12-22 04:26

I have a UTF-16 Unicode Text (.txt) file downloaded and defaulted as comma-separated values (.csv) when saved on a mac drive. This file contains numeric data that has 1000 s

3条回答
  •  悲哀的现实
    2020-12-22 04:51

    Thank you everyone who helped here. I actually found that my load function was the problem, and the following code does a simple trick to read in data correctly from the start.

    read.csv(filename, sep="\t", fileEncoding="UTF-16", skip=1)    
    

提交回复
热议问题