schema_assert_levels: Assert that levels are declared in the schema

View source: R/schema_helpers.R

schema_assert_levelsR Documentation

Assert that levels are declared in the schema

Description

For binary/categorical/ordinal variables, stops if any provided levels are not declared in the schema.

Usage

schema_assert_levels(schema, var, levels)

Arguments

schema

A validated schema (or a raw schema that can be validated).

var

A single variable name.

levels

Character vector of levels to check.

Value

Invisibly returns TRUE.


fluxCore documentation built on Sept. 22, 2026, 5:07 p.m.