Thanks so much. The following are the actual lines I used for testing, and they worked.
titleline <- readLines("C:/ad/dta/TryRRead/pureCos2.dta", n=1) print(titleline) dta <- read.table("C:/ad/dta/TryRRead/pureCos2.dta", skip = 1, header = TRUE, sep = ",", colClasses = "character") linDta <- linearizeTime(dta); # plot(linDta) spec.pgram(dta[2],log="no",taper=0,xlim=c(0,.05)) -- View this message in context: http://r.789695.n4.nabble.com/Reading-first-line-before-using-read-table-tp4524804p4525000.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.