Я получаю следующую ошибку: Error in file (file, "rt"): cannot open the connection
Error in file (file, "rt"): cannot open the connection
download.file("http://mba.tuck.dartmouth.edu/pages/faculty/ken.french/ftp/F-F_Research_Data_5_Factors_2x3_CSV.zip", destfile="F-F_Research_Data_5_Factors_2x3_CSV.zip") unzip("F-F_Research_Data_5_Factors_2x3_CSV.zip") unzip("F-F_Research_Data_5_Factors_2x3_WIRELESS_CSV.zip") data <- read.delim("F-F_Research_Data_5_Factors_2x3_Wireless_CSV.TXT", sep = "|")
Мне удалось прочитать в наборе данных с:
download(url="http://mba.tuck.dartmouth.edu/pages/faculty/ken.french/ftp/F-F_Research_Data_5_Factors_2x3_daily_CSV.zip", dest="<directory and filename>/F-F_Research_Data_5_Factors_2x3_daily_CSV.zip", mode="wb") unzip ("<directory and filename>/F-F_Research_Data_5_Factors_2x3_daily_CSV.zip", exdir = "Yourfilename") x <- read_csv("<directory and filename>/F-F_Research_Data_5_Factors_2x3_daily.CSV", skip = 3) x %>% mutate_at(vars(-X1), funs(./100))