ls {base} | R Documentation |
ls
and objects
return a vector of character strings
giving the names of the objects in the specified environment.
When invoked with no argument at the top level prompt,
ls
shows what data sets and functions a user has defined.
When invoked with no argument inside a function,
ls
returns the names of the functions local variables.
This is useful in conjunction with browser
.
ls(name, pos= -1, envir=pos.to.env(pos),
all.names=FALSE, pattern)
objects(name, pos= -1, envir=pos.to.env(pos),
all.names=FALSE, pattern)
name |
the name of an attached object appearing
in the vector of names returned by |
pos |
the index of an attached object in
the list returned by |
envir |
an evaluation environment. Defaults to the one corresponding
to |
all.names |
a logical value. If |
pattern |
an optional regular expression. Only names
matching |
apropos
for finding objects in the whole search path;
class
, methods
, etc. for object-oriented programming.
.Ob <- 1
ls(pat="O")
ls(pat="O", all = T)#- also shows ".[foo]"