all_names_present {popEpi} | R Documentation |
Check if all names are present in given data
Description
Given a character vector, checks if all names are present in names(data)
.
Throws error if stops=TRUE
, else returns FALSE
if some variable name is not present.
Usage
all_names_present(data, var.names, stops = TRUE, msg = NULL)
Arguments
data |
dataset where the variable names should be found |
var.names |
a character vector of variable names, e.g.
|
stops |
logical, stop returns exception |
msg |
Custom message to return instead of default message.
Special: include |
Value
'TRUE' if all 'var.names' are in 'data', else 'FALSE',
Author(s)
Joonas Miettinen
See Also
[Package popEpi version 0.4.12 Index]