nlSignatureAddArg: Add an argument to an nlSignature

Description Usage Arguments Value Examples

View source: R/stats.R

Description

Add an argument to an nlSignature

Usage

1
nlSignatureAddArg(nlStatSigs, addArg)

Arguments

nlStatSigs

character A vector of nlStat signatures to which to add the argument

addArg

character The argument to add to the signatures

Value

named character A vector of modified nlStat signatures

Examples

1
2
3
4
5
6
7
8
9
nlStat <- list("sum")

nlSig <- Rnightlights:::nlStatSignature(nlStat)

Rnightlights:::nlSignatureAddArg(nlStatSigs = nlSig, addArg = "na.rm = TRUE")

#returns
#            sum()
# "sum(na.rm=TRUE)"

chrisvwn/Rnightlights documentation built on Sept. 7, 2021, 1:44 a.m.