R/is_data_table.R

Defines functions is_data_table

# Check is data is a data table

# @param data Data to be checked
is_data_table <- function(data) {
  if (is.data.table(data) == FALSE) {
    stop("The dataset is not a data table")
  }
}

Try the attrib package in your browser

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

attrib documentation built on March 30, 2021, 5:11 p.m.