Description Usage Arguments Examples
A group of functions to divide continous numeric vectors into discret parts.
Similar to quantile
then cut
but easier to use.
discretize: cut a vector by a function or by certain cutoff value using cut.
Return a factor by replacing the original ones with the discrete value regions (<=xxx, xxx-xxx, >xxx).
NOTE: NAs are automatically removed
trisect: quantile a vector into three equal parts. To be used with discretize: discretize(x,trisect)
1 2 3 |
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 |
summary |
when TRUE, message a summary of the count of each discrete items. |
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.