다음 URL과 연결된 .xls 부분에서 직접 가져 오기에 관심이 있습니다. .xls에는 두 개의 다른 스프레드 시트가 있습니다. 두 번째 스프레드 시트에서 다섯 번째 행으로 시작하는 표를 가져 오려고합니다.URL에서 가져온 .xls의 지정된 워크 시트
require(gdata)
url = "https://www.philadelphiafed.org/-/media/research-and-data/real-time-center/real-time-data/data-files/files/routput_first_second_third.xls?la=en.xls"
dataset = read.xls(url, sheet=2, header=T, skip=4)
I가 얻을 오류 :
Error in file.exists(tfn) : invalid 'file' argument
내가 Windows에서 일하고 있어요 시도는 다음과 같습니다. .xls의 출처는 "All available observations"라는 이름으로 here입니다. 당신은 다른 패키지를 사용해도 좋습니다.
는 http://stackoverflow.com/questions/21738463/importing-excel-file-using-url-using-read-xls 당으로, HTTP, HTTPS를 변경, 그것은 작동합니다. – jav