For the following ways of reading a csv file using R
cd1<-as.character(as.matrix(read.csv('traindata.csv',skip=2,nrows = 1,head=F)))
Is this the only way to read a specific row? Moreover, why we have to call as.matrix
first before calling as.characte
?