get_cities: Get names of cities polled for mayor

Description Usage Value Examples

View source: R/get_cities.R

Description

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.

Usage

1

Value

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.

Examples

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()

sergiospagnuolo/pollingBR documentation built on Dec. 23, 2021, 12:19 a.m.