readFile(dataFile, nSkip = 0, nSkipNames = 0, header = FALSE, reverse =
FALSE, sep = ",", na = "NaN")
## Load the data
data(harwood)
## Write the data as csv
write.table(harwood,file="harwood.csv",sep=",",quote=FALSE,row.names=FALSE)
## Now read the file as a new data frame
harwood=readFile('harwood.csv',3,1,na='NaN')
Run the code above in your browser using DataLab