Skip to contents

Get electoral term affiliations of politicians.

Usage

get_ets(data, var, dummy = TRUE, merge = TRUE)

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 single list variable. Default is TRUE.

merge

A logical value indicating whether to return just the generated columns (FALSE) or the whole data.frame (TRUE). Default is TRUE.

Value

A data.frame.