funCode: Generate code for function call

Description Usage Arguments Value Examples

View source: R/funCode.R

Description

Creates a string that represents a function call based on an argument list.

Usage

1
funCode(funName, args)

Arguments

funName

Name of the function to call in the string.

args

a named, partly named or unnamed list containing the parameters for the function. Supported types are logical, numeric and character. Entries of NULL, NA, "" and "NA" will be ignored.

Value

A character vector of length one

Examples

1
2
3
args <- list(dat = "dt", m = "u", xlab = c("kja", "jsak", "saj"), z = 1,
             u = NULL, r = TRUE)
funCode("myFunction", args)

statistikat/codeModules documentation built on Feb. 17, 2021, 11:42 a.m.