View source: R/checkColNames.R
checkColNames | R Documentation |
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
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 |
A TRUE value (if all of "cols" are found in "dNames") or an exception if not
Romain Francois
checkColNames(LETTERS, "D")
checkColNames(LETTERS, LETTERS[1:5])
## Not run:
# Will show an error because "Hello" is not in LETTERS
checkColNames(LETTERS, c("A", "Hello"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.