discretizes: Discretize a continuous vector

Description Usage Arguments Examples

Description

A group of functions to divide continous numeric vectors into discret parts. Similar to quantile then cut but easier to use.

Usage

1
2
3
discretize(x, cutoff, label = NULL, include.lowest = TRUE, summary = FALSE)

trisect(x, na.rm = FALSE)

Arguments

x

numeric vector

cutoff

numeric value (single or vector) as cutting point(s) (Don't include min or maximum), or a function generating one cutting points (median, mean, etc) or multiple cutting points which include (quantile).

label

change the default output region labels to customized labels

include.lowest

see cut parameter include.lowest

summary

when TRUE, message a summary of the count of each discrete items.

Examples

1
2

brightchan/cjbmisc documentation built on Nov. 5, 2021, 4:12 p.m.