I have saved my workspace as R data with required variables to be shared with my colleagues. I was wondering if there is a way to add documentation or additional information such as basic variable descriptions, data author etc. with Rdata. I can add additional information to dataframes by adding attributes by using attr(). I was wondering if there is a more elegant way of doing this for the entire R workspace.
我已将工作空间保存为R数据,并将所需变量与我的同事共享。我想知道是否有办法用Rdata添加文档或其他信息,如基本变量描述,数据作者等。我可以通过使用attr()添加属性来向数据框添加其他信息。我想知道是否有更优雅的方式为整个R工作区执行此操作。
1 个解决方案
#1
1
You could save text that describes everything as an object in the .RData file
您可以将描述所有内容的文本保存为.RData文件中的对象
README <- scan("text_that_describes_everything.txt",sep="\n",what="character")
#1
1
You could save text that describes everything as an object in the .RData file
您可以将描述所有内容的文本保存为.RData文件中的对象
README <- scan("text_that_describes_everything.txt",sep="\n",what="character")