简体   繁体   中英

list of user-defined functions in R workspace

In R there are user-defined functions that are different than those in a library.

How do I get a list of only those functions?

I know there is ls() but it gives all objects.
I find that class(x) can say "function" if "x" is a function.

We may use lsf.str to return the functions created in the global env

lsf.str()

If we want to just get the names of the functions without the attributes

c(lsf.str())

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM