[R] Reading a CSV file

@vi@e@gross m@iii@g oii gm@ii@com @vi@e@gross m@iii@g oii gm@ii@com
Sun Aug 7 06:06:50 CEST 2022


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 using r-project.org> On Behalf Of Jim Lemon
Sent: Saturday, August 6, 2022 8:54 PM
To: Erin Hodgess <erinm.hodgess using gmail.com>
Cc: r-help using 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 using gmail.com>
wrote:
>
> Hello!
>
> Is there a way to read the first line of a CSV file, then skip 4 
> lines, then continue reading, please?
>
> I know you can skip from the top, but I don't know if you can read and 
> then skip.
>
> Thanks,
> Erin
>
>
> Erin Hodgess, PhD
> mailto: erinm.hodgess using gmail.com
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help using 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.

______________________________________________
R-help using 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.



More information about the R-help mailing list