Re: [R] how do I read only specific columns using read.csv or other read function

2008-07-13 Thread Charles C. Berry
On Sun, 13 Jul 2008, Juliet Hannah wrote: I was not able to follow the solution posted. Could you demonstrate this technique on an example data set. Thanks! dat <- data.frame(a = letters[1:3], b = LETTERS[1:3], c = 1:3, d = 3:1) Using your example: dat <- data.frame(a = letters[1:3], b = LE

Re: [R] how do I read only specific columns using read.csv or other read function

2008-07-13 Thread Juliet Hannah
I was not able to follow the solution posted. Could you demonstrate this technique on an example data set. Thanks! dat <- data.frame(a = letters[1:3], b = LETTERS[1:3], c = 1:3, d = 3:1) On Wed, Jul 2, 2008 at 1:13 PM, Charles C. Berry <[EMAIL PROTECTED]> wrote: > On Wed, 2 Jul 2008, Ben Tupper w

Re: [R] how do I read only specific columns using read.csv or other read function

2008-07-02 Thread Charles C. Berry
On Wed, 2 Jul 2008, Ben Tupper wrote: On Jul 2, 2008, at 6:53 AM, Philip James Smith wrote: Hi R people: I have huge files with as many as 5000 columns. I'd really like to read only certain columns of those files. I know column names I want to read. I looked at the documentation of read.c

Re: [R] how do I read only specific columns using read.csv or other read function

2008-07-02 Thread Ben Tupper
On Jul 2, 2008, at 6:53 AM, Philip James Smith wrote: Hi R people: I have huge files with as many as 5000 columns. I'd really like to read only certain columns of those files. I know column names I want to read. I looked at the documentation of read.csv . Although there is a col.names

[R] how do I read only specific columns using read.csv or other read function

2008-07-02 Thread Philip James Smith
Hi R people: I have huge files with as many as 5000 columns. I'd really like to read only certain columns of those files. I know column names I want to read. I looked at the documentation of read.csv . Although there is a col.names option, it allows users to specify the names of the columns,