powered by
Check if an object contains specific names.
check_crucial_names(x, nms)
Invisible x, or an error with informative message.
x
A named object.
String; names expected to be found in x.
Other functions to check inputs: flag_if_group(), is_multiple()
flag_if_group()
is_multiple()
Other functions for developers: extract_insensitive(), flag_if_group(), is_multiple(), nms_try_rename(), rename_matches(), type_ensure()
extract_insensitive()
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")
Run the code above in your browser using DataLab