跳到內容

合併與調和模式

用法

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

參數

...

Schemas 以進行統一

schemas

或者,模式的列表

一個 Schema,其中包含輸入中欄位的聯集;如果 schemas 中有任何一個是 NULL,則為 NULL

範例

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