nlStatSignature: Get the signature of an nlStat

Description Usage Arguments Value Examples

View source: R/stats.R

Description

Get the signature of an nlStat i.e. the nlStat function with all arguments passed in by the user. Used to uniquely identify an nlStat function call i.e. the same function called with different arguments results in a different signature

Usage

1

Arguments

nlStat

character The name of an nlStat

Value

named character The signature of the nlStat

Examples

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

nlSig <- Rnightlights:::nlStatSignature(nlStat)

#returns "sum()"

nlStat <- list("sum", "na.rm=TRUE")

nlSig <- Rnightlights:::nlStatSignature(nlStat)

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

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