Message-ID: <00c201d8aa13$1f1aa4d0$5d4fee70$@gmail.com>
Date: 2022-08-07T04:06:50Z
From: @vi@e@gross m@iii@g oii gm@ii@com
Subject: Reading a CSV file
In-Reply-To: <CA+8X3fUoz_UGFE9Lee5ooJWed3FL0urpEy+01egQhEYjmCthTw@mail.gmail.com>
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:
>
> 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 at gmail.com
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> 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.
______________________________________________
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.