discretize_vector | R Documentation |
discretization
discretize_vector(
x,
n,
method = "natural",
breakpoint = NULL,
sampleprob = 0.15,
seed = 123456789
)
x |
A continuous numeric vector. |
n |
(optional) The number of discretized classes. |
method |
(optional) The method of discretization, default is |
breakpoint |
(optional) Break points for manually splitting data. When
|
sampleprob |
(optional) When the data size exceeds |
seed |
(optional) Random seed number, default is |
A discretized integer vector
xvar = c(22361, 9573, 4836, 5309, 10384, 4359, 11016, 4414, 3327, 3408,
17816, 6909, 6936, 7990, 3758, 3569, 21965, 3605, 2181, 1892,
2459, 2934, 6399, 8578, 8537, 4840, 12132, 3734, 4372, 9073,
7508, 5203)
discretize_vector(xvar, n = 5, method = 'natural')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.