Learn R Programming

Rnightlights (version 0.2.4)

validNlStats: Check if given statistics are valid

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

validNlStats(nlStats)

Arguments

nlStats

the statistics to check

Value

named logical TRUE/FALSE

Examples

Run this code
# NOT RUN {
Rnightlights:::validNlStats(c("sum", "mean"))
 #returns TRUE TRUE
 
Rnightlights:::validNlStats("unknownFunction")
 #returns FALSE

# }

Run the code above in your browser using DataLab