xtile: Cut numeric x in quantile

Description Usage Arguments Value Examples

View source: R/xtile.R

Description

Cut numeric x in quantile

Usage

1
xtile(x,n)

Arguments

x

numeric vector

n

number of quantiles

Value

A factor vector.

Examples

1
2
tertiles <- xtile(rnorm(1000),3)
table(tertiles)

yapomif documentation built on May 31, 2017, 2:23 a.m.