Specifying colClasses in the read.csv

前端 未结 7 1179
独厮守ぢ
独厮守ぢ 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:11

    If we combine what @Hendy and @Oddysseus Ithaca contributed, we get cleaner and a more general (i.e., adaptable?) chunk of code.

        data <- read.csv("test.csv", head = F, colClasses = c(V36 = "character", V38 = "character"))                        
    

提交回复
热议问题