Download data on the candidates' social media links in federal elections
Source:R/social_media.R
social_media.Rd
social_media()
is a function that allows you to download data on the social media handles of candidates participating in federal and municipal elections in Brazil. The function returns a data.frame
where each observation corresponds to a candidate's social media handles (i.e., usernames).
Arguments
- year
Election year (
integer
). For this function, only the years 2020, 2022, and 2024 are available.- encoding
Data original encoding (defaults to 'latin1'). This can be changed to avoid errors when
ascii = TRUE
.- temp
(
logical
). Whether to keep the temporary data files for future use (recommended).- readme_pdf
should the original README file be saved as a PDF in the working directory? Defaults to FALSE.