is_col_classes: Check for column classes

View source: R/utils-hammr.R

is_col_classesR Documentation

Check for column classes

Description

Compares the column classes of a data.frame with

Usage

is_col_classes(dat, classes, method = "identical")

Arguments

dat

a data.frame or list

classes

a list of column classes. Its names must match the names of dat exactly (see example)

method

if all, ensure that all columns named in classes are present in dat, if any, ensure that any of the columns named in classes are present in dat, if identical, ensure that the names of dat and classes are identical


tatoo documentation built on March 31, 2023, 8:16 p.m.