dichotomize: Dichotomize values

Description Usage Arguments Value

View source: R/functions.R

Description

Classifies existing values into two new categories or groups

Usage

1
dichotomize(x, cutoff, group0 = 0, group1 = 1)

Arguments

x

variable to be dichotomized

cutoff

value used to split groups; <= cutoff

group0

value assigned to members of first group; default = 0

group1

value assigned to members of second group; default = 1

Value

binary vector


ongclarissa/woodhouse documentation built on May 31, 2020, 7:09 p.m.