Specifying colClasses in the read.csv

前端 未结 7 1126
独厮守ぢ
独厮守ぢ 2020-11-27 10:37

I am trying to specify the colClasses options in the read.csv function in R. In my data, the first column \"time\" is basically a character vector

相关标签:
7条回答
  • 2020-11-27 11:29

    The colClasses vector must have length equal to the number of imported columns. Supposing the rest of your dataset columns are 5:

    colClasses=c("character",rep("numeric",5))
    
    0 讨论(0)
提交回复
热议问题