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:
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.