Learn R Programming

taRifx (version 1.0.6.2)

categorize: Categorize a vector based on a data.frame with two columns, the low and high end points of each category.

Description

Categorize a vector based on a data.frame with two columns, the low and high end points of each category.

Usage

categorize(vec, cutpoints.df, match.min = TRUE,
    names = TRUE)

Arguments

vec

vector to categorize

cutpoints.df

quantile_cutpoints will create a data.frame of the proper format here

match.min

Whether to include or exclude the minimum value

names

Return names or row numbers

Value

Categorized values

See Also

quantile_cutpoints