Hu Chen wrote:

hi all
If I wanna get the total number of lines in a big file without reading
the file's content into R as matrix or data frame, any methods or
functions?

You must read it in R, or how do you think should one determine the number of lines in a file (if you don't want to use another program)?
I'd suggest length(readLines(...)).


Uwe Ligges



thanks in advance.
Regards

______________________________________________ [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

Reply via email to