function.toString: Convert a Function Body to a String

Description Usage Arguments Value Examples

View source: R/functionToString.R

Description

Convert a function body to a string

Usage

1

Arguments

f

the function

Value

a string representation of the function

Examples

1
2
3
4
5
6
function.toString(function(x,y) x+5*y)
# x+5*y
function.toString(function(x) sin(x))
# sin(x)
function.toString(sin)
# sin

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