Skip to content
Prev 392411 / 398502 Next

Reading a CSV file

Jim,

The resulting column vectors may not come out right as they will not be read
into the same number of columns unless you have the right number of
commas/separators and worse, the result may likely be columns changed to the
same type such as text or float even if you intended integer.

-----Original Message-----
From: R-help <r-help-bounces at r-project.org> On Behalf Of Jim Lemon
Sent: Saturday, August 6, 2022 8:54 PM
To: Erin Hodgess <erinm.hodgess at gmail.com>
Cc: r-help at r-project.org
Subject: Re: [R] Reading a CSV file

HI Erin,
Just index out the lines in the result vector.

Jim

On Sun, Aug 7, 2022 at 10:16 AM Erin Hodgess <erinm.hodgess at gmail.com>
wrote:
______________________________________________
R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.