tspec_combine | R Documentation |
Combine multiple specifications
tspec_combine(...)
... |
Specifications to combine. |
A tibblify specification.
# union of fields
tspec_combine(
tspec_df(tib_int("a")),
tspec_df(tib_chr("b"))
)
# unspecified + x -> x
tspec_combine(
tspec_df(tib_unspecified("a"), tib_chr("b")),
tspec_df(tib_int("a"), tib_variant("b"))
)
# scalar + vector -> vector
tspec_combine(
tspec_df(tib_chr("a")),
tspec_df(tib_chr_vec("a"))
)
# scalar/vector + variant -> variant
tspec_combine(
tspec_df(tib_chr("a")),
tspec_df(tib_variant("a"))
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.