Re: [R] Problem reading a CSV

From: Jim Porzak <jporzak_at_gmail.com>
Date: Tue, 01 Jul 2008 11:43:48 -0700

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, <naw3_at_duke.edu> 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 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,
> -Nina
>
> ______________________________________________
> R-help_at_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.
>

        [[alternative HTML version deleted]]



R-help_at_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. Received on Tue 01 Jul 2008 - 18:50:51 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 01 Jul 2008 - 19:31:35 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive