condense: Efficient binned summaries.

Description Usage Arguments Examples

View source: R/condense.r

Description

Efficient binned summaries.

Usage

1

Arguments

...

group objects created by bin

z

a numeric vector to summary for each group. Optional for some summary statistics.

summary

the summary statistic to use. Currently must be one of count, sum, mean, median or sd. If NULL, defaults to mean if y is present, count if not.

w

a vector of weights. Not currently supported by all summary functions.

drop

if TRUE only locations with data will be returned. This is more efficient if the data is very sparse (<1% of cells filled), and is slightly less efficient. Defaults to TRUE if you are condensing over two or more dimensions, FALSE for 1d.

Examples

1
2
3
x <- runif(1e5)
gx <- bin(x, 0.1)
condense(gx)

hadley/bigvis documentation built on May 17, 2019, 9:45 a.m.