Function to Identify in Which Interval a Value Falls
Function to identify in which interval of a set of cut points, cuts
, a value x
falls within or beyond. The number of intervals is equal to the number of cut points plus 1. Values of x have to exceed the value of the cut point to be allocated to the higher interval.
cutter(x, cuts)
x |
name of the vector to be processed. |
cuts |
the vector of cut points. |
xi |
a vector of the same length as |
Robert G. Garrett
## Make test data available data(kola.c) attach(kola.c) ## Cut the data into quartiles xi <- cutter(Cu, quantile(Cu, probs = c(0.25, 0.5, 0.75))) ## Detach test data detach(kola.c)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.