Description Usage Arguments Value Examples
Get the Name of a Function as String
1 |
f |
the function |
a string representing the name of the function
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | function.name(sin)
# sin(x)
library(methods);
function.name(setClass)
# methods::setClass
f <- function(k) sin(k);
ff <- f;
function.name(ff);
# f
nest <- function(z) function.name(z);
nest(ff);
# f
nest(sin);
# sin
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.