View source: R/candidates_get_by_lastname.R
candidates_get_by_lastname | R Documentation |
Get candidate data by last name
candidates_get_by_lastname(
last_names,
election_years = lubridate::year(lubridate::today()),
stage_ids = "",
all = TRUE,
verbose = TRUE
)
last_names |
Vector of candidate last names |
election_years |
Vector of election years. Default is the current year. |
stage_ids |
The |
all |
Boolean: should all possible combinations of the variables be searched for, or just the exact combination of them in the order they are supplied? |
verbose |
Should cases when no data is available be messaged? |
A dataframe of candidates and their attributes. If a given last_name
+ election_year
+ stage_id
combination returns no data, that row will be filled with NA
s.
## Not run:
candidates_get_by_lastname(c("Ocasio-Cortez", "Omar"), 2018)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.