| divide | R Documentation |
Divide a vector into three groups
divide(x, criterion = "1sd")
x |
A numeric vector. |
criterion |
A character value |
divide() divides a vector into three groups using the criterion of 1 SD,
or proportions like 0.27. Differing from cut(), the medium interval of divide()
does not include the left and right limits.
An ordered factor with levels "Low < Medium < High".
x <- 1:100
divide(x)
divide(x, 0.27)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.