Skip to content
Back to formatted view

Raw Message

Message-ID: <88b129f8-3d41-ecb6-0c53-3c111f6c236b@statistik.tu-dortmund.de>
Date: 2022-08-07T00:51:12Z
From: Uwe Ligges
Subject: Reading a CSV file
In-Reply-To: <CACxE24na6zZ=S5U0jD1VnTvbp38gtGTi-QWejPb_YyYFNO-Obg@mail.gmail.com>

csv <- readLines(filename)
read.csv(text = csv[-(2:5)]

Best,
Uwe Ligges


On 07.08.2022 02:15, Erin Hodgess 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.