listing contents of an R data file without loading

后端 未结 4 751
南笙
南笙 2020-11-29 09:35

I sometimes use print( load( \"myDataFile.RData\" ) ) to list the contents of a data file when I load it. Is there a way to list the contents without loading th

4条回答
  •  旧巷少年郎
    2020-11-29 10:04

    In R v3.0.1 the load() function got a new argument. Loading an RData file with

    load("mydata.RData", verbose=TRUE) 
    

    will show you the objects that are loaded. Of course, it still means you have to load the object.

提交回复
热议问题