unnest_var | R Documentation |
Unnests a multi-value variable of type list to long format. Multi-value variables can contain more than one value per observation and thus break with the
tidy-data convention. This function allows to conveniently expand data
to contain a single var
value per observation only, thereby increasing the number of observations (i.e. rows).
unnest_var(data, var)
data |
RDB referendum data as returned by |
var |
Tidy selections are supported. |
A tibble.
Other referendum data transformation functions:
as_ballot_dates()
,
n_rfrnds()
,
n_rfrnds_per_period()
,
prettify_col_names()
Other variable unnesting functions:
var_name_unnested()
rdb::rfrnds(quiet = TRUE) |>
rdb::unnest_var(topics_tier_2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.