apply-mass_dataset-method: apply

apply,mass_dataset-methodR Documentation

apply

Description

apply

Usage

## S4 method for signature 'mass_dataset'
apply(X, MARGIN, FUN, ..., simplify = TRUE)

Arguments

X

A mass_dataset object.

MARGIN

An integer vector indicating which margins should be "swept out". 1 indicates rows, 2 indicates columns.

FUN

The function to be applied. This function should take a data vector argument and return a result of length one.

...

Additional arguments to FUN.

simplify

Logical; should the result be simplified to a vector or matrix if possible?

Value

The result of applying FUN to the margins of X. If simplify is TRUE, then the result may be a vector or matrix.


tidymass/massdataset documentation built on Sept. 14, 2024, 4:41 p.m.