apply-PRecording-method: apply function for PRecording objects

apply,PRecording-methodR Documentation

apply function for PRecording objects

Description

[Experimental]
This is the PatchR analog to apply

Usage

## S4 method for signature 'PRecording'
apply(X, MARGIN, FUN, ReturnPObject = F, Verbose = T)

Arguments

X

A PRecording object

MARGIN

A vector giving the subscripts which the function will be applied along. Understands Time, Sweep,Trace, or 1-3 resp.

FUN

The function to be applied

ReturnPObject

Whether to return results as a PRecording with an additional, computed trace only works with MARGIN="Trace" or if applying FUN leaves dimensions unchanged. Default is FALSE, then returns a matrix.

Verbose

Print what function is doing.

Value

A matrix or PRecording object.

See Also

base::apply()


moritzlindner/PatchMasteR documentation built on April 30, 2024, 1:52 a.m.