I want to skip the 1st and 3rd lines of my csv file when importing a file into a data frame in R.
In the source file, my headers are on line 2.
Using the skip argument in read.csv I can skip the 1st line and set the argument to the TRUE header, I still have the 3rd line from the source file in my data frame.
Can anyone suggest how to skip a few specific lines in R, below is what I was able to put together?
Can I pass a vector into a skip argument specifying the exact lines to ignore?
prach <- read.csv("RSRAN104_-_PRACH_Propagation_Delay-PLMN-day-rsran_RU50EP1_reports_RSRAN104_xml-2016_08_23-21_33_03__604.csv", header = TRUE, sep = ",", stringsAsFactors = FALSE, skip = 1)
source share