Read csv file hosted on Google Drive

后端 未结 1 734
悲&欢浪女
悲&欢浪女 2020-12-09 05:31

I am trying to access (read into R) a .csv file hosted on Google Drive (NOT a Drive spreadsheet) -- having set file permission to \'publicly shareable\'.

So based

1条回答
  •  [愿得一人]
    2020-12-09 06:28

    You could try it like this

    id <- "0B-wuZ2XMFIBUd09Ob0pKVkRzQTA" # google file ID
    read.csv(sprintf("https://docs.google.com/uc?id=%s&export=download", id))
    

    0 讨论(0)
提交回复
热议问题