cut_interval {ggplot2}R Documentation

Discretise continuous variable, equal interval length.

Description

Cut numeric vector into intervals of equal length.

Usage

cut_interval(x, n = NULL, length = NULL, ...)

Arguments

x numeric vector
n number of intervals to create, OR
length length of each interval
... other arguments passed on to cut

Details

@arguments numeric vector @arguments number of intervals to create, OR @arguments length of each interval @arguments other arguments passed on to cut @keywords manip @seealso cut_number

Author(s)

Hadley Wickham <h.wickham@gmail.com>

See Also

cut_number

Examples

table(cut_interval(1:100, n = 10))
table(cut_interval(1:100, n = 11))
table(cut_interval(1:100, length = 10))

[Package ggplot2 version 0.8.2 Index]