I am trying to read in a file that has 24 column headers, but 14 additional null values. See link: https://www.elections.il.gov/ElectionInformation/CandDataFile.aspx?id=51
Whenever I run the code below, I get the message
"more columns than column names."
I feel like the answer is probably simple. Any idea?
candidates <- read.csv(file = "candidates.txt", sep = ",",
header = TRUE, stringsAsFactors = FALSE)