Get electoral term affiliations of politicians.
get_ets.Rd
Get electoral term affiliations of politicians.
Arguments
- data
Input
data.frame
.- var
Name of variable (
character
) that contains the electoral term values.- dummy
A
logical
value indicating whether to generate dummy variables per electoral term (TRUE
) or a singlelist
variable. Default isTRUE
.- merge
A
logical
value indicating whether to return just the generated columns (FALSE
) or the wholedata.frame
(TRUE
). Default isTRUE
.