add_urls | R Documentation |
Augments data
with additional columns holding URLs of the specified types
. The new columns will be named after types
, prefixed with url_
, so
types = "sudd"
will add the column url_sudd
etc.
add_urls(data, types = c("sudd", "swissvotes"))
data |
RDB referendum data as returned by |
types |
Type(s) of URLs to add. One or more of
|
A tibble.
Other referendum data augmentation functions:
add_country_code_continual()
,
add_country_code_long()
,
add_country_name()
,
add_country_name_long()
,
add_former_country_flag()
,
add_period()
,
add_turnout()
,
add_world_regions()
rdb::rfrnds(quiet = TRUE) |>
dplyr::filter(country_code == "CH" & level == "national") |>
rdb::add_urls() |>
dplyr::select(id,
country_code,
level,
starts_with("id_"),
starts_with("url_"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.