R/check.dt.exists.R

Defines functions check.dt.exists

check.dt.exists <- function(dt.name, envir = .GlobalEnv){
  if(exists(x = dt.name, envir = envir) == FALSE){
    stop(sprintf("There is no variable with the name '%s' in the selected environment.  Please set dt.name to a character value with the name of a data.frame variable that is loaded in memory.", dt.name))
  }
}

Try the DTwrappers package in your browser

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

DTwrappers documentation built on June 21, 2021, 9:06 a.m.