Description Usage Arguments Details Value Author(s) Examples
Parses an input alpha value to be used in numeric summary calculations
1 | checkColNames(dNames, cols)
|
dNames |
Character vector of column names from a data frame |
cols |
Character vector of column names that should be found in the data frame |
Checks that all column names specified in "cols" are found in the data frame names (given by "dNames") and produces a neat error message if not
A TRUE value (if all of "cols" are found in "dNames") or an exception if not
Mike K Smith mstoolkit@googlemail.com
1 2 3 | checkColNames(LETTERS, "D") # Returns TRUE
checkColNames(LETTERS, LETTERS[1:5]) # Returns TRUE
try(checkColNames(LETTERS, c("A", "Hello"))) # Produces an error
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.