dot-buckets: .buckets

Description Usage Arguments Value Examples

Description

- Does the automatic bucketing for the plot. Really just cribbing on hist$breaks to do the heavy work, but with some better handling of categorical variables. Also includes a switch to treat anything numeric as categorical instead.

Usage

1
2
.buckets(x, num.switch = class(x) %in% c("numeric", "integer",
  "float"))

Arguments

x

- A vector to be bucketed.

num.switch

- Binary. True if we should treat x as numeric, false if categorical.

Value

Returns a list object with 2 values. $groups is a vector containing the distinct bucket values. $buckets returns the snapped values.

Examples

1
2

christiantillich/AnaliTools documentation built on May 13, 2019, 6:59 p.m.