number2group: Convert a numeric vector into groups

Description Usage Arguments Examples

View source: R/ggPredict.R

Description

Convert a numeric vector into groups

Usage

1
2
number2group(x, mode = 1, values = NULL, silent = FALSE,
  label = "label", digits = 2, colorn = 3)

Arguments

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

Examples

1
2
3
number2group(iris$Sepal.Length,label="Sepal.Length")
x=number2group(mtcars$wt,label="wt")
x

predict3d documentation built on Sept. 3, 2019, 5:06 p.m.