powered by
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
validNlStats(nlStats)
the statistics to check
named logical TRUE/FALSE
# NOT RUN { Rnightlights:::validNlStats(c("sum", "mean")) #returns TRUE TRUE Rnightlights:::validNlStats("unknownFunction") #returns FALSE # }
Run the code above in your browser using DataLab