Das*_*son 47
ls()
从帮助页面:
‘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’.
Run Code Online (Sandbox Code Playgroud)
编辑:我应该注意列出您需要使用的所有变量
ls(all.names = TRUE)
Run Code Online (Sandbox Code Playgroud)
否则以点开头的变量将不会显示在列表中.