So far I have figured out that the following line
reads our time series files into R OK.
dtLs$dta <- read.table("C:/TryRRead/datFiles/JFeqfi4h.rta", header = TRUE,
sep = ",", colClasses = "character")
But I have to remove a main-title line so
that the first line is the column titles line.
This leads to having two sets of data files around when
we would rather have just one set.
How can I read just one line from the file to
get the main title in before using the read.table() call?
--
View this message in context:
http://r.789695.n4.nabble.com/Reading-first-line-before-using-read-table-tp4524804p4524804.html
Sent from the R help mailing list archive at Nabble.com.
______________________________________________
[email protected] 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.