Learn R Programming

brmsmargins (version 0.2.1)

.checktab: Check Object Class is a Table

Description

Internal utility function confirm that an object has the attributes needed to be used as data. Currently it should be a tbl, data.frame, or data.table.

Usage

.checktab(x, requireNames = TRUE)

Value

An empty string if no issues. Otherwise, a non zero string with warning/error messages.

Arguments

x

An object to be evaluated.

requireNames

A logical, whether names are required. Defaults to TRUE