stdnum_yesno: Standardize Yes / No / NA to -1, 1, 0.

View source: R/format_values.R

stdnum_yesnoR Documentation

Standardize Yes / No / NA to -1, 1, 0.

Description

Standardize Yes / No / NA to -1, 1, 0.

Usage

stdnum_yesno(vec)

Arguments

vec

long values of Yes/Nos Must have been passed through filter_existing, otherwise all NAs are coded as 0s


kuriwaki/ballot documentation built on May 1, 2023, 9:55 p.m.