Re: [R] Problem reading a CSV

From: Doran, Harold <HDoran_at_air.org>
Date: Mon, 30 Jun 2008 14:40:11 -0400


Why are you not using read.csv()?

> -----Original Message-----
> From: r-help-bounces_at_r-project.org
> [mailto:r-help-bounces_at_r-project.org] On Behalf Of naw3_at_duke.edu
> Sent: Monday, June 30, 2008 2:17 PM
> To: R-help_at_r-project.org
> Subject: [R] Problem reading a CSV
>
> 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.
>



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 Mon 30 Jun 2008 - 18:43:17 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 Mon 30 Jun 2008 - 20:33:06 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