smart.split: smart.split

Description Usage Arguments Value

View source: R/smart.split.R

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

1
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


chicane documentation built on Nov. 7, 2021, 1:07 a.m.