function.name: Get the Name of a Function as String

Description Usage Arguments Value Examples

View source: R/functionName.R

Description

Get the Name of a Function as String

Usage

1

Arguments

f

the function

Value

a string representing the name of the function

Examples

 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

thomasWeise/utilizeR documentation built on May 30, 2019, 11:48 a.m.