Importing from CSV from a specified range of values
问题 I am trying to read in a CSV file and I am running into the following error. Error in scan(file = file, what = what, sep = sep, quote = quote, dec = dec, : line 1097 did not have 5 elements After further inspection of the CSV file I find that around line 1097 there is a break in the rows and starts a new header with annualised data (I am interested in monthly for now). temp <- tempfile() download.file("http://mba.tuck.dartmouth.edu/pages/faculty/ken.french/ftp/F-F_Research_Data_Factors_CSV