standardizeYesNo: A function that standardizes binary columns of Y/N

Description Usage Arguments

View source: R/cleaning.R

Description

This function allows you to input a vector and strings that should be transformed to YES or NO and outputs a standardized column

Usage

1
standardizeYesNo(col, yes = NULL, no = NULL, upper = TRUE, verbose = TRUE)

Arguments

col

Column or vector to be standardized

yes

Strings to be transformed to YES

no

Strings to be transformed to NO

upper

Transform all to upper case to make substitution easier

verbose

Output a message that identifies left over strings in the column that are not YES or NO


lakikowolfe/cascadiaR documentation built on Jan. 17, 2020, 9:32 a.m.