LoginSignup
3
1

More than 5 years have passed since last update.

Rでdropboxのデータをインポート

Posted at

RでDropboxのデータリンクからデータを読み込みたいとき。

参照:https://stackoverflow.com/questions/31955995/how-to-download-file-any-form-from-dropbox-using-r

  1. データのリンクを作成 https://www.dropbox.com/XXXXX/YYYY.zzz?dl=0
  2. 最後のdl=0をraw=1に書き換える https://www.dropbox.com/XXXXX/YYYY.zzz?raw=1
  3. Rで読む

temp <- tempfile()
download.file("https://www.dropbox.com/XXXXX/YYYY.zzz?raw=1",temp)
load(temp) #tempを読み込む。read_csv とか

3
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1