I have a csv file with a blank row above the column names.
Is it possible to correct for this in R?
Right now, I open the csv and remove the blank row before running the R code. But I want to avoid this work if I can.
What is the correct/best way to remove the blank row and then label the columns.
I have tried:
df <- read.csv("SourceFile/filename.csv", header= TRUE, row.names = 2)
but I get this error:
Error in read.table(file = file, header = header, sep = sep, quote = quote, : more columns than column names