social_media | R Documentation |
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).
social_media(year, encoding = "latin1", temp = TRUE, readme_pdf = FALSE)
year |
Election year ( |
encoding |
Data original encoding (defaults to 'latin1'). This can be changed to avoid errors
when |
temp |
( |
readme_pdf |
should the original README file be saved as a PDF in the working directory? Defaults to FALSE. |
If export is set to TRUE
, the downloaded data is saved as .dta and .sav
files in the current directory.
social_media()
returns a tbl, data.frame
.
## Not run:
df <- social_media(2022)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.