canonical_object_class: Access the properties of a CanonicalForm

Description Usage Arguments Value Functions Examples

View source: R/checks.R

Description

These functions allow you to access the properties of a CanonicalForm from inside of another function. See examples.

Usage

1
2
3
4
5

Arguments

cf

a CanonicalForm object

Value

The value of a property

Functions

Examples

1
2
3
check_col_names_in_canonical <- function(x) all(colnames(x) %in% canonical_col_names())
cf <- extract_canonical_form(cars)
run_check(check_col_names_in_canonical, cf, x = cars)

colin-fraser/CanonicalForms documentation built on Jan. 8, 2022, 8:42 a.m.