check_data.table: Check data.table

View source: R/check.R

check_data.tableR Documentation

Check data.table

Description

Check data.table

Usage

check_data.table(x, arg_name = deparse(substitute(x)))

Arguments

x

Object to check.

arg_name

Character: Name of the variable for error messages.

Value

Called for side effects. Throws an error if input is not a data.table, returns x invisibly otherwise.

Author(s)

EDG

Examples

check_data.table(data.table::as.data.table(iris))
# Throws error:
try(check_data.table(iris))

rtemis.core documentation built on April 22, 2026, 1:11 a.m.