gpt4 book ai didi

r - 如何将 .Rdata 格式转换为文本文件格式

转载 作者:行者123 更新时间:2023-12-03 23:23:27 26 4
gpt4 key购买 nike

我是 R 的新手,我正在尝试将 .Rdata 格式文件转换为逗号分隔的文本文件格式。有人可以帮我解决这个问题吗?

最佳答案

load("yourData.RData")
ls() #returns a list of all the objects you just loaded (and anything else in your environment)
write.csv(theItemOfInterestFromYourDRadataFileAsThereMayBeMoreThanOneThingInthere,
file="yourCSV.csv")

关于r - 如何将 .Rdata 格式转换为文本文件格式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13189467/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com