Given a year and/or date by the user, this function returns a data frame with information related to the date of the elections.
Arguments
- type_elec
Type of the election. Defaults to
"congress"
.- year
A vector or single value representing the years of the elections to be considered. Please, check in
dates_elections_spain
the elections of the specified type are available for the provided year.- date
A vector or single value representing the dates of the elections to be considered. If date was provided, it should be in format %Y-%m-%d (e.g., '2000-01-01'). Defaults to
NULL
. If no date was provided,year
should be provided as numerical variable. Please, check indates_elections_spain
the elections of the specified type are available.