[R] import data

David Winsemius dwinsemius at comcast.net
Fri Mar 18 22:01:28 CET 2011


On Mar 18, 2011, at 12:05 PM, AlexSmith wrote:

> Hi,
>
> How do I read just the first line of a data file in R? (it does not  
> contain
> labels)

read.table has an `nrow` argument and readLines has an `n` argument.

> Thanks in advance,
>
> Alex.
>
> --
> View this message in context: http://r.789695.n4.nabble.com/import-data-tp3387620p3387620.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at 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.

David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list