Nina,
read.csv() will default fill = TRUE,
or add to your read.table() argument list.
If that does not help, you will need to use col.names argument. see
?read.table
HTH,
Jim Porzak
Responsys, Inc.
San Francisco, CA
http://www.linkedin.com/in/jimporzak
On Mon, Jun 30, 2008 at 11:16 AM, <[EMAIL
Brazil
E-mail: [EMAIL PROTECTED]
Alternative e-mail: [EMAIL PROTECTED]
---
>Message: 48
>Date: Mon, 30 Jun 2008 14:16:58 -0400
>From: [EMAIL PROTECTED]
>Subject: [R] Problem reading a CSV
>To: R-help@r-project.
does it really getting kicked down to another row or is this just an
artifact of printing in the command window?
On Mon, Jun 30, 2008 at 2:16 PM, <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have a CSV file where each row has at least 20 columns and some rows have
> up
> to 30 columns of data. When I u
Why are you not using read.csv()?
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
> Sent: Monday, June 30, 2008 2:17 PM
> To: R-help@r-project.org
> Subject: [R] Problem reading a CSV
>
> Hi,
>
>
Hi,
I have a CSV file where each row has at least 20 columns and some rows have up
to 30 columns of data. When I use the command,
Pathways<-read.table('MetaCycSample3.csv',sep=',',header=FALSE,quote='"')
anything past the 21st column gets kicked down to a new row. How can I fix this?
Thanks,
-N
5 matches
Mail list logo