Is there a good R API for accessing Google Docs?

后端 未结 6 778
猫巷女王i
猫巷女王i 2021-01-31 18:11

I\'m using R for data analysis, and I\'m sharing some data with collaborators via Google docs. Is there a simple interface that I can use to access a R data.frame object to and

6条回答
  •  梦谈多话
    2021-01-31 18:30

    I just wrote another package to download Google Docs spreadsheets. Its much simpler than the alternatives, since it just requires the URL (and that 'share by link' is enabled).

    Try it:

    install.packages('gsheet')
    library(gsheet)
    gsheet2tbl('docs.google.com/spreadsheets/d/1I9mJsS5QnXF2TNNntTy-HrcdHmIF9wJ8ONYvEJTXSNo')
    

    More detail is here: https://github.com/maxconway/gsheet

提交回复
热议问题