powered by
Convert a numeric vector into groups
number2group( x, mode = 1, values = NULL, silent = FALSE, label = "label", digits = 2, colorn = 3 )
A numeric vector
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
A logical. Whether table of result will be shown
A character string
integer indicating the number of decimal places
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
Run the code above in your browser using DataLab