lsdata {cgwtools}R Documentation

List all objects in an .Rdata file.

Description

This function opens an .Rdata file, lists the contents, and cleans up after itself.

Usage

lsdata(fnam = ".Rdata")

Arguments

fnam

the name of the datafile to be examined.

Value

The output of ls applied to the objects loaded from the specified data file.

Author(s)

Carl Witthoft carl@witthoft.com

References

Various people have published similar code on Stack Overflow.

See Also

load, resave

Examples

##not run because of complaints about detritus
# xblue<-1
# yblue<-2
# save(xblue,yblue,file='blue.Rdata')
# lsdata('blue.Rdata')

[Package cgwtools version 4.1 Index]