Learn R Programming

popEpi (version 0.2.1)

all_names_present: 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)

Arguments

data
dataset where the variable names should be found
var.names
a character vector of variable names
stops
logical, stop returns exception

See Also

robust_values