How to convert .Rdata format into text file format

后端 未结 2 1945
渐次进展
渐次进展 2021-01-01 22:39

I am a novice in R and I am trying to convert .Rdata format file into comma delimited text file format. Can someone help me out regarding this?

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-01 22:59

    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")
    

提交回复
热议问题