我听说过并且一直在使用RGoogleDocs R软件包进行测试,该软件包可让您登录帐户并查看google文档以及上载或删除它们。我可以选择创建一个新文档,然后在销毁旧文档后将其上传的方法,但是我想要一种更优雅的方法。
我已使用rgoogledocs访问电子表格。编辑时间到了,我无法更改任何值。
#this line returns the value in the worksheet in column 1 row 1
myworksheet[[1]][1,1]
#this command does nothing, but I would like to change the value to cow
myworksheet[[1]][1,1] = "cow"
您可以尝试新googlesheets
软件包。将单元格A1设置为“牛”的示例交互:
library(devtools)
install_github('jennybc/googlesheets')
library(googlesheets)
my_sheets <- list_sheets()
myworksheet <- register_ss("worksheetname")
edit_cells(myworksheet, ws = 1, input = "cow", anchor = "A1")
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句