AddTrace | R Documentation |
This function adds a new trace /channel from any object convertible into a matrix to an existing PRecording X.
AddTrace(X, mtx, Trace, Unit, Sweeps = colnames(mtx), isOrig = F)
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 |
isOrig |
if TRUE, marks added trace as an original recording. |
A matrix or PRecording X
PRecording, PCollection, as.matrix()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.