How to see data from .RData file?

后端 未结 8 1794
梦谈多话
梦谈多话 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:48

    If you have a lot of variables in your Rdata file and don't want them to clutter your global environment, create a new environment and load all of the data to this new environment.

    load(file.path("C:/Users/isfar.RData"), isfar_env <- new.env() )
    
    # Access individual variables in the RData file using '$' operator
    isfar_env$var_name 
    
    # List all of the variable names in RData:
    ls(isfar_env)
    

提交回复
热议问题