I get an error when I am trying to read a text file in R:
"Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, : line 2 did not have 5 elements"
I tried to read a text file with the following code:
read.fwf(file=url("http://d396qusza40orc.cloudfront.net/getdata%2Fwksst8110.for"),
widths=c(9,8, 8, 8, 8),sep = "", skip = 2, header= TRUE)
I loaded packages readr.