bpaggregate {BiocParallel}R Documentation

Apply a function on subsets of data frames

Description

This is a parallel version of aggregate.

Usage


## S4 method for signature 'formula,BiocParallelParam'
bpaggregate(x, data, FUN, ..., BPPARAM=bpparam())

## S4 method for signature 'data.frame,BiocParallelParam'
bpaggregate(x, by, FUN, ..., simplify=TRUE, BPPARAM=bpparam())

## S4 method for signature 'ANY,missing'
bpaggregate(x, ..., BPPARAM=bpparam())

Arguments

x

A data frame or a formula.

by

A list of factors. Data frame x will be split accoring to the factors.

data

A data frame.

FUN

Function to apply.

...

Additional arguments for FUN.

simplify

If set to TRUE, the return values of FUN will be simplified using simplify2array.

BPPARAM

An optional BiocParallelParam instance determining the parallel back-end to be used during evaluation.

Value

See aggregate.

Author(s)

Martin Morgan mailto:mtmorgan@fhcrc.org.


[Package BiocParallel version 0.6.1 Index]