Import Google sheet data directly into R [closed]

筅森魡賤 提交于 2020-06-08 12:58:08

问题


Is it possible to import a table into R directly from Google docs without authorization key? I have a sharable google sheet that I try to connect to shiny app but couldn't find a proper way.


回答1:


With the package gsheet you can read in a sheet from the shareable link. Example given in the docs:

library(gsheet)
url <- 'docs.google.com/spreadsheets/d/1I9mJsS5QnXF2TNNntTy-HrcdHmIF9wJ8ONYvEJTXSNo'
a <- gsheet2tbl(url)

It's quite nice.



来源:https://stackoverflow.com/questions/40389112/import-google-sheet-data-directly-into-r

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!