number2group | R Documentation |
Convert a numeric vector into groups
number2group(
x,
mode = 1,
values = NULL,
silent = FALSE,
label = "label",
digits = 2,
colorn = 3
)
x |
A numeric vector |
mode |
A numeric. If 1, mean(x) +c(-1,0,1)*sd(x) are used. If 2, quantile(x,probs=c(0.14,0.5,0.86),type=6) are used. If 3, values are used |
values |
A numeric vector |
silent |
A logical. Whether table of result will be shown |
label |
A character string |
digits |
integer indicating the number of decimal places |
colorn |
The number of regression lines when the modifier variable(s) are numeric |
number2group(iris$Sepal.Length,label="Sepal.Length")
x=number2group(mtcars$wt,label="wt")
x
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.