check_schema {schematic} | R 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)
[Package schematic version 0.1.2 Index]