Description Usage Value Examples
get_cities()
extracts the names for all the cities with corresponding
polls for mayor in Poder 360's poll agreggator API
(https://www.poder360.com.br/pesquisas-de-opiniao/api/). The function
returns a data.frame
where each observation corresponds to a
combination of city and election year for which there's a poll available.
1 |
data.frame
with information from cities in which there are
polls for mayoral elections in Brazil and the corresponding years for
which they are available.
ano: election year to which the pool corresponds to.
cidade: city where the poll was conducted.
unidade_federativa_nome: federative unit where the city is in.
ambito: acronym of the federative unit where the city is in.
1 2 3 | # returns a data.frame with all combinations of cities and the election
# years for which they have mayoral polls available
df <- get_cities()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.