I have a data set whose first column is merged with 4 columns in excel. When I import the same in R only this column gets imported while the others don't. Could you please suggest me how to import the data correctly.
Try with:
data = read.csv("FILE_NAME.csv", header=TRUE, stringsAsFactors=FALSE, sep = "\\t")
it should work. And to delete the first rows, then it is easier this way:
data[,firstROWnumberTOdelete:secondROWnumberTOdelete] <- NULL
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.