R/validNames.R

Defines functions validNames

validNames <- function(names_to_test, all_names) {
    inAll <- names_to_test %in% all_names
    if (!all(inAll)) {
        stop("Variable names(s) '", paste(names_to_test[!inAll], collapse = "', '"), 
            "' not found in the data.")
    }
}

Try the sfadv package in your browser

Any scripts or data that you put into this service are public.

sfadv documentation built on May 2, 2019, 6:36 a.m.