categorize: Categorize values

Description Usage Arguments Value

View source: R/functions.R

Description

Classifies existing values into three new categories or groups

Usage

1
categorize(x, value1, value2, group0 = 0, group1 = 1, group2 = 2)

Arguments

x

variable to be categorized

value1

first cutoff used to split groups; <= cutoff1

value2

second cutoff used to split groups; > cutoff1 & <= cutoff2

group0

value assigned to members of first group; default = 0

group1

value assigned to members of second group; default = 1

group2

value assigned to members of third group; default = 2

Value

categorical vector


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