How to see data from .RData file?

后端 未结 8 1747
梦谈多话
梦谈多话 2020-11-29 02:23

I saw some similar qestions and I tried to work it out on my own, but I couldn\'t. This is my problem:

I have to load a isfar.RData file to use it in other computati

相关标签:
8条回答
  • 2020-11-29 02:57

    It sounds like the only varaible stored in the .RData file was one named isfar.

    Are you really sure that you saved the table? The command should have been:

    save(the_table, file = "isfar.RData")
    

    There are many ways to examine a variable.

    Type it's name at the command prompt to see it printed. Then look at str, ls.str, summary, View and unclass.

    0 讨论(0)
  • 2020-11-29 03:02

    Look at the help page for load. What load returns is the names of the objects created, so you can look at the contents of isfar to see what objects were created. The fact that nothing else is showing up with ls() would indicate that maybe there was nothing stored in your file.

    Also note that load will overwrite anything in your global environment that has the same name as something in the file being loaded when used with default behavior. If you mainly want to examine what is in the file, and possibly use something from that file along with other objects in your global environment then it may be better to use the attach function or create a new environment (new.env) and load the file into that environment using the envir argument to load.

    0 讨论(0)
提交回复
热议问题