View source: R/check_crucial_names.R
| check_crucial_names | R Documentation |
Check if an object contains specific names.
check_crucial_names(x, nms)
x |
A named object. |
nms |
String; names expected to be found in |
Invisible x, or an error with informative message.
Other functions to check inputs:
flag_if_group(),
is_multiple()
Other functions for developers:
extract_insensitive(),
flag_if_group(),
is_multiple(),
nms_try_rename(),
rename_matches(),
type_ensure()
v <- c(x = 1) check_crucial_names(v, "x") dfm <- data.frame(x = 1) check_crucial_names(dfm, "x")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.