Monday, 7 September 2015

R coding: skip top "n" row


Skip the first "n" rows in the data

 class(iris)  
 skipfirst <-3  
 finalOutput <- iris[-(1:skipfirst),]  
 write.csv(finalOutput, file = "modified.csv")  

No comments:

Post a Comment