获取R的全局环境中加载的函数列表

Roc*_*nce 22 r function environment-variables

可能重复:
有没有办法获得一个可以在R中使用的所有函数名称的向量?

你好

我想从R获得环境中加载的函数列表.
我知道ls()这会给出加载的对象列表.但有些对象不是函数.
我想从函数中清除我的env,而不是从包含我不希望丢失的一些结果的其他对象(矩阵,数组等)中清除.

任何的想法?

Jor*_*eys 32

看到 ?lsf.str

X <- lsf.str()
as.vector(X) # just for printing purposes, you can use the vector in rm()
rm(list=X)
Run Code Online (Sandbox Code Playgroud)