Skip to contents

Combine and harmonize schemas

Usage

unify_schemas(..., schemas = list(...))

Arguments

...

Schemas to unify

schemas

Alternatively, a list of schemas

Value

A Schema with the union of fields contained in the inputs, or NULL if any of schemas is NULL

Examples

a <- schema(b = double(), c = bool())
z <- schema(b = double(), k = utf8())
unify_schemas(a, z)
#> Schema
#> b: double
#> c: bool
#> k: string