cut_pretty: Cuts a vector into factors with pretty levels

Description Usage Arguments Value Examples

View source: R/cut-pretty.r

Description

Cuts a vector into factors with pretty levels

Usage

1
cut_pretty(x, breaks, collapse = " to ", ...)

Arguments

x

numeric vectory

breaks

numeric vector of two ore more unique cut points

...

arguments passed to cut

Value

A factor is returned

Examples

1
2
3
set.seed(42)
x <- runif(n=50, 0, 50)
cut_pretty(x, breaks=pretty(x))

ramhiser/pocketknife documentation built on May 26, 2019, 10:11 p.m.