validNlStats: Check if given statistics are valid

Description Usage Arguments Value Examples

View source: R/stats.R

Description

Check if given statistics are valid. A valid statistic is one which is a function available in the current environment and returns a valid value to match.fun

Usage

1
validNlStats(nlStats)

Arguments

nlStats

the statistics to check

Value

named logical TRUE/FALSE

Examples

1
2
3
4
5
Rnightlights:::validNlStats(c("sum", "mean"))
 #returns TRUE TRUE
 
Rnightlights:::validNlStats("unknownFunction")
 #returns FALSE

Rnightlights documentation built on Aug. 29, 2019, 5:02 p.m.