cut_ext: Convert Numeric to Factor with custom condition

Description Usage Arguments Details Value Author(s) Examples

Description

cut_ext converts a numeric object to factor given the breaks and condition applied to the high threshold of each interval.

Usage

1
cut_ext(x, breaks, condition = NULL)

Arguments

x

numeric vector to be converted to factor. breaks numeric vector of breaks to be included. condition condition to be applied to the high threshold of interval.

breaks

break point to divide the categories.

condition

condition for each break point in order to define open or close intervals.

Details

details.

Value

The new factor is returned.

Author(s)

Erick A. Chacon-Montalvan

Examples

1
cut_ext(1:10, breaks = c(3, 6), condition = c('<', '<='))

ErickChacon/day2day documentation built on May 6, 2019, 4:03 p.m.