bind_as_struct | R Documentation |
Given a set of lists/dataframes, attempt to join them as a dataframe with field
types matching the specified template. The default and fastest approach simply
relies on dplyr::bind_rows
to use all fields present in the lists to be
joined, while strict mode ensures that the template fields and only the template
fields are present.
bind_as_struct(template, ..., strict = FALSE)
template |
A named list to use as a template. |
... |
The lists to join |
strict |
Use all and only the fields in the template. Default: FALSE |
A dataframe containing the combined inputs.
bind_as_struct(list("a" = character(0)), list("a" = 1), list("a" = "a"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.