Learn R Programming

ggplot2 (version 0.9.2.1)

cut_number: Cut numeric vector into intervals containing equal number of points.

Description

Cut numeric vector into intervals containing equal number of points.

Usage

cut_number(x, n = NULL, ...)

Arguments

x
numeric vector
n
number of intervals to create
...
other arguments passed on to cut

See Also

cut_interval

Examples

Run this code
table(cut_number(runif(1000), n = 10))

Run the code above in your browser using DataLab