qcut: Cut a variable

View source: R/qcut.r

qcutR Documentation

Cut a variable

Description

Calls the cut function to cut variables on data frame.

Usage

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


data(sTRACE)
gx <- qcut(sTRACE$age)
table(gx)


timereg documentation built on Sept. 11, 2024, 8:35 p.m.

Related to qcut in timereg...