qcut: Cut a variable

Description Usage Arguments Author(s) Examples

View source: R/qcut.r

Description

Calls the cut function to cut variables on data frame.

Usage

1
qcut(x, cuts = 4, breaks = NULL, ...)

Arguments

x

variable to cut

cuts

number of groups, 4 gives quartiles

breaks

can also give breaks

...

other argument for cut function of R

Author(s)

Thomas Scheike

Examples

1
2
3
data(sTRACE)
gx <- qcut(sTRACE$age)
table(gx)

timereg documentation built on Oct. 13, 2021, 5:06 p.m.

Related to qcut in timereg...