smart.split {chicane}R Documentation

smart.split

Description

Split a data frame into a prespecified number of bins, using split and cut. Unlike the default R functions, this does not fail when asked to split the data into a single bin.

Usage

smart.split(dat, bins)

Arguments

dat

Data frame or data table to be split

bins

Number of bins to split data into

Value

List with bins elements. Each element corresponds to one portion of the data


[Package chicane version 0.1.8 Index]