bin.custom: Generate bins based on given cut points

Description Usage Arguments Value Examples

View source: R/bin_custom.R

Description

bin.custom() cuts numerical data into different bins based on the given cut points. It also gives you the flexibility of naming the bins.

Usage

1
2
bin.custom(x, cut.p, names = NULL, name.style = c("report",
  "scientific"))

Arguments

x

The numerical data needs to be cut

cut.p

The cut poins used for the cutting

names

The names for the corresponding bins The poit size for the dots

name.style

Either "report" or "scientific" style. The "report" style is easier easier to understand for the non-technical audience. While the "scientific" style is more succinct.

Value

Bins the original values fall within

Examples

1
bin.custom(1:100, cut.p = c(20, 50, 80))

JianhuaHuang/streamit documentation built on Aug. 19, 2018, 6:59 a.m.