pretty_cut: Convert Numeric to Nice Factor

Description Usage Arguments Value

Description

Creates an ordered factor from a numeric vector input with "nice" endpoints.

Usage

1
pretty_cut(x, buckets = 20, inf.left = T, inf.right = T)

Arguments

x

a numeric vector which is to be converted to a factor by cutting

buckets

approximate number of intervals into which x is to be cut

inf.left

logical indicating if the leftmost interval should expand to include -Inf

inf.right

logical indicating if the rightmost interval should expand to include Inf

Value

A factor is returned.


TylerGrantSmith/fbhelpers documentation built on May 12, 2019, 12:23 a.m.