英文:
Is there a function that lets you view the details of an rds file?
问题
在R中有没有一个函数可以查看保存的模型的详细信息?
英文:
I am using an R package that saves a model as an rds file. Is there a function in R to see the details of the saved model?
答案1
得分: 1
RDS文件是通用的对象容器。您可以在其中存储任何东西:数据、模型、函数等。在实际加载之前,它们不知道内部包含什么。因此,在将其加载到您的R工作空间之前,无法从RDS文件中提取特定的模型参数。
根据您使用的建模函数,您可能无法恢复生成模型所使用的确切参数。并非所有函数都将所有内容保存在输出中。
英文:
RDS files are generic object containers. You can store anything in them: data, models, functions, etc. They are unaware of what's inside until you actually load it up. So there would be no way to extract specific model parameters from the RDS file until you call readRDS
to load it into your R workspace.
And depending on the modeling function you use, you may not necessarily be able to recover the exact parameters used to generate the model. Not all function save everything in the output.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论