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)


scheike/timereg documentation built on Jan. 25, 2023, 3:43 p.m.