Learn R Programming

scanstatistics (version 1.0.1)

prioritize_and_execute: Order locations accorder to priority, then apply function.

Description

Order locations accorder to priority, then apply function.

Usage

prioritize_and_execute(.f, A, prioritized_locations, ...)

Arguments

.f

A function taking a vector as first argument.

A

A matrix, e.g. containing counts or baselines. Rows represent time (ordered from most recent to most distant), columns represent locations (numbered from 1 and up).

...

Further arguments passed to .f.

Value

A matrix of the same dimension as A.