Learn R Programming

tabplot (version 1.3-3)

bin_data: Bin data

Description

Working horse for tableplot, does the actual binning

Usage

bin_data(p, sortCol = 1L, cols = seq_along(p$data), from = 0,
  to = 1, nbins = 100L, decreasing = FALSE, sample = FALSE,
  sampleBinSize = 100)

Arguments

p

prepared dataset (see tablePrepare)

sortCol

column on which the table will be sorted

cols

columns of the data that will be used.

from

lower boundary in quantiles

to

upper boundary in quantiles

nbins

number of bins

decreasing

sort decreasingly

sample

sample or use whole dataset?

sampleBinSize

sample size per bin