assert_case: Assert the data case onto the object

View source: R/check_spec.R

assert_caseR Documentation

Assert the data case onto the object

Description

assert_case() checks an object for what case the tables and fields are in and converts them to the target_case us required.

Requires the object to have the data_case attribute.

Usage

assert_case(x, target_case = "snake", .table_spec = data_spec(x))

Arguments

x

An object to assert case.

target_case

The case to transform it to.

.table_spec

A file specification list. Defaults to deriving from the object.

See Also

Other Data Spec Functions: add_missing_spec_cols(), add_missing_spec_tables(), change_case_from_spec(), check_spec(), coerce_to_spec(), data_case()


Technomics/costmisc documentation built on Nov. 12, 2024, 8:05 a.m.