On 17-03-2013, at 06:23, Sedat Sen <sedatse...@gmail.com> wrote: > I was wondering if it is possible read a specific part of a text file in R > without importing whole file. > > For example, I want to read a number where is located on the line 30 and > columns between 2 and 4. Say the number is 456. can I see it without > opening the file. I want to learn how to do this because I am doing many > analyses which result in the same style output. I just need to read only > one line in these outputs. > > > Is there any specific function for this purpose? I googled it but did not > find anything helpful.
Googling for what? Googling on "R read lines" gives a lot. Look at ?readLines Berend ______________________________________________ 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.