helper_bin: Group Column based on bin size

Description Usage Arguments Value

View source: R/helpers.R

Description

This a helper function to summarize more than one columns for group_bin function. Ideally The breaks should start from -Inf and end at +Inf to avoid Nan's. Otherwise we can see see Nan's. Default bin's are calculated based on quartiles of the data

Usage

1
helper_bin(data, x, y, breaks, ...)

Arguments

data

Input data table

x:

A single numeric column to get top n and min n numbers

y:

Column to summarize default is input column

break:

bin size of data

Value

returns a list containing summary data.frame with two columns with min and max numbers


r2rahul/expdata documentation built on May 18, 2019, 2:36 a.m.