[R] how to skip certain rows when reading data
Gabor Grothendieck
ggrothendieck at gmail.com
Thu Jul 27 20:23:39 CEST 2006
Just read them in and throw them away:
read.table("myfile.dat", ...whatever...)[-c(10, 12), ]
On 7/27/06, jz7 at duke.edu <jz7 at duke.edu> wrote:
> Dear all,
>
> I am reading the data using "read.table". However, there are a few rows I
> want to skip. How can I do that in an easy way? Suppose I know the row
> number that I want to skip. Thanks so much!
More information about the R-help
mailing list