I would like to read online data to R using download.file() as shown below.
download.file()
URL <- \"https://d396qusza40orc.cloudfront.net/getdata%2Fdata%2Fs
I've succeed with the following code:
url = "http://d396qusza40orc.cloudfront.net/getdata%2Fdata%2Fss06hid.csv" x = read.csv(file=url)
Note that I've changed the protocol from https to http, since the first one doesn't seem to be supported in R.