calc_voted: Calculate Voter Status

Description Usage Arguments

View source: R/calculate_functions.R

Description

If a voter voted in any of the elections (lower house, upper house, head of state) the respondent is classified as 'Voted', otherwise 'Did Not Vote'

Usage

1
2
3
4
5
6
7
8
9
calc_voted(
  data,
  new_name = "voted",
  early_module_ballot_1,
  early_module_ballot_2,
  current_pres_1st,
  current_pres_2nd,
  current_lh
)

Arguments

data

a data frame

new_name

name of the new column


delabj/csesTools documentation built on Dec. 31, 2020, 11:16 p.m.