check_schema: Validate a data.frame against a schema

View source: R/check_schema.R

check_schemaR Documentation

Validate a data.frame against a schema

Description

Validate a data.frame against a schema

Usage

check_schema(data, schema)

Arguments

data

A data.frame to check

schema

A Schema object created with 'schema()'

Value

invisible if validation passes, otherwise stops with error

Examples


my_schema <- schema(
  mpg ~ is.numeric
)

check_schema(mtcars, my_schema)


schematic documentation built on June 9, 2025, 5:10 p.m.