R/chck_names.R

Defines functions chck_names

Documented in chck_names

#' Check that certain names exist
#' 
#' This isn't different from verify except in its output...and I don't use it anymore...
#'
#' @param x a dataframe
#' @param colnames a character vector of column names you want to check exist
#'
#' @return T or F
#' @export
#'
#' @examples chck_names(occ, c("start", "end"))
chck_names <- function(x, colnames){
  all(colnames %in% names(x))
}
# UNUSED
annam21/TTE.STE.IS documentation built on Dec. 24, 2021, 8:42 a.m.