Learn R Programming

rIACI (version 1.0.0)

tapply.fast: Fast tapply Function

Description

Provides a faster implementation of tapply for factor-type indices.

Usage

tapply.fast(X, INDEX, FUN = NULL, ..., simplify = TRUE)

Value

List or vector. Result of applying FUN to X grouped by INDEX.

Arguments

X

Numeric vector. Data to be applied.

INDEX

Factor. Indexing factor.

FUN

Function. Function to apply.

simplify

Logical. Whether to simplify the result.