Imported a csv-dataset to R but the values becomes factors

后端 未结 8 1435
灰色年华
灰色年华 2020-11-29 01:19

I am very new to R and I am having trouble accessing a dataset I\'ve imported. I\'m using RStudio and used the Import Dataset function when importing my csv-file and pasted

8条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-29 01:59

    for me the solution was to include skip = 0 (number of rows to skip at the top of the file. Can be set >0)

    mydata <- read.csv(file = "file.csv", header = TRUE, sep = ",", skip = 22)

提交回复
热议问题