AddTrace: Add a trace/channel to PRecording objects

AddTraceR Documentation

Add a trace/channel to PRecording objects

Description

[Stable]
This function adds a new trace /channel from any object convertible into a matrix to an existing PRecording X.

Usage

AddTrace(X, mtx, Trace, Unit, Sweeps = colnames(mtx), isOrig = F)

Arguments

X

A PRecording object

mtx

Any object convertible into a matrix. Rows are sampling points, columns are sweeps. Number of sampling points and sweeps must match the traces already present in X

Trace

Name of the new trace

Unit

The unit of the trace

Sweeps

Names of the sweeps added. Must match the sweep names in X. Data in Trace will be sorted according to the order of sweeps in X before adding. Default is colnames(X)

isOrig

if TRUE, marks added trace as an original recording.

Value

A matrix or PRecording X

See Also

PRecording, PCollection, as.matrix()


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