Returns a list containing basic information about parties which has or had been any deputy in the lower house. If none parameters are passed, the function returns the parties which has active deputies on that moment.
fetch_partido(id = NULL, sigla = NULL, dataInicio = NULL, dataFim = NULL, idLegislatura = NULL, itens = NULL, ordenarPor = NULL)
id | Party's ID |
---|---|
sigla | Party's abbreviation |
dataInicio | Party's processing starting date |
dataFim | Party's processing end date |
idLegislatura | Legislature's number |
itens | Items quantity. '-1' returns all parties which have deputies at the request moment |
ordenarPor | Order by: 'id', 'sigla' or 'nome' |
Dataframe containing information about the parties.
Note that if you have the party's ID, it's not necessary to add any other parameter on the
function call. The call to this function using the party's ID returns more details than using the
others parameters. If you don't have the party's ID, the fetch_id_partido
function may be helpful.
PMB <- fetch_partido(id = 36887) PT <- fetch_partido(sigla = "PT") partidos2010a2014 <- fetch_partido(dataInicio = "2010-01-01", dataFim = "2014-12-31", itens = 100)