length(count.fields("foo.txt"))
?
xue dong wrote:>
> hi, everyone,
>
> do you know if there is a R function that can count the lines of a file
> without open it?
>
> something like "wc -l " in Unix.
>
> Thanks,
>
> Xue
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> 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.
>
>
--
View this message in context:
http://www.nabble.com/R-functions-that-count-lines-of-a-files-tp25239480p25239578.html
Sent from the R help mailing list archive at Nabble.com.