pe_2018: Downloads and parses all data from 2018 Elections

Description Usage Arguments Value

View source: R/update.R

Description

Downloads HTML files from Brazilian Superior Electoral Court platform. Then parses all the HTML files, returning a tidy dataset.

Usage

1
pe_2018(path = "data-raw/html_2018")

Arguments

path

directory path to save files. Defaults to data-raw/html_2018.

This function downloads all polls for 2018 elections. It does not delete existing polls, then it might run faster for the next times. It does subscribe the pesq_main files, whose contain the list of individual polls. This way you can always run this function pointing to the same directory, and it will update the polls safely, without downloading uninportant files. The full download takes about 15 minutes depending on the internet connection.

Value

tibble contaning the same variables as the pesqEle_2018 database.


conre3/pesqEle documentation built on June 25, 2020, 5:28 a.m.