rfrnds_bkp: Get referendum data from backup

rfrnds_bkpR Documentation

Get referendum data from backup

Description

Downloads the referendum data from the Referendum Database (RDB) backup in the zdaarau/rpkgs/rdb repository. See the codebook for a detailed description of all variables.

Usage

rfrnds_bkp(
  is_draft = FALSE,
  incl_archive = FALSE,
  use_cache = TRUE,
  max_cache_age = "1 week",
  quiet = FALSE
)

Arguments

is_draft

TRUE means to include only referendum entries with draft status, FALSE to include only normal entries. Set to NULL in order to include both draft and normal entries.

incl_archive

Whether or not to include an archive column containing data from an earlier, obsolete state of the Referendum Database (RDB).

use_cache

Whether or not to return cached results if possible. If FALSE, results are always newly fetched regardless of max_cache_age.

max_cache_age

Duration after which cached results are refreshed (i.e. newly fetched). A valid lubridate duration. Use Inf to disable cache expiry. Only relevant if use_cache = TRUE.

quiet

Whether or not to suppress printing status output from internal processing.

Value

A tibble.

See Also

Other referendum data functions: add_rfrnds(), assert_vars(), count_rfrnds(), delete_rfrnds(), download_file_attachment(), edit_rfrnds(), rfrnd(), rfrnd_exists(), rfrnds(), validate_rfrnds()

Examples

# get all referendums (excl. drafts)
rdb::rfrnds_bkp()

zdaarau/c2d documentation built on Dec. 18, 2024, 1:24 p.m.