Re: [R] Read last line of a file

2011-05-04 Thread Petr Savicky
On Wed, May 04, 2011 at 02:17:29AM -0700, Joel wrote: > Hi dear R users. > > I got a file that I need to extract the third column (or word) of the last > line of files that has a diffrent amounts of rows. > It works with > > x<-read.tables("file") > x[1,3] > > This returns the proper result bu

[R] Read last line of a file

2011-05-04 Thread Joel
Hi dear R users. I got a file that I need to extract the third column (or word) of the last line of files that has a diffrent amounts of rows. It works with x<-read.tables("file") x[1,3] This returns the proper result but as the files is large this takes time and uses memory that is just unnec