unpack_tspec | R Documentation |
Unpack a tibblify specification
unpack_tspec(
spec,
...,
fields = NULL,
recurse = TRUE,
names_sep = NULL,
names_repair = c("unique", "universal", "check_unique", "unique_quiet",
"universal_quiet"),
names_clean = NULL
)
camel_case_to_snake_case(names)
spec |
A tibblify specification. |
... |
These dots are for future extensions and must be empty. |
fields |
A string of the fields to unpack. |
recurse |
Should unpack recursively? |
names_sep |
If |
names_repair |
Used to check that output data frame has valid names. Must be one of the following options:
See |
names_clean |
A function to clean names after repairing. For example
use |
names |
Names to clean |
A tibblify spec.
spec <- tspec_df(
tib_lgl("a"),
tib_row("x", tib_int("b"), tib_chr("c")),
tib_row("y", tib_row("z", tib_chr("d")))
)
unpack_tspec(spec)
# only unpack `x`
unpack_tspec(spec, fields = "x")
# do not unpack the fields in `y`
unpack_tspec(spec, recurse = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.