Home > database >  list of user-defined functions in R workspace
list of user-defined functions in R workspace

Time:12-04

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.

CodePudding user response:

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())
  • Related