AddMetaData | R Documentation |
This function adds metadata to a PRecording or PCollection object by filling the MetaData slot. The function calling AddMetaData
is stored in the .MetaDataFx slot.
AddMetaData(X, values, title = colnames(values), Verbose = T)
X |
A PRecording or PCollection object |
values |
The values to be added. Can be anything convertible into a matrix. |
title |
The title(s) for the metadata column(s). |
Verbose |
should the names/titles of the columns added be printed? |
The MetaData slot
In a PRecording object the MetaData slot is a matrix with each row corresponding to a sweep.
In a PCollection object the MetaData slot is a matrix with each row corresponding to a PRecording stored in the object.
Column names must be unique.
A PRecording or PCollection object, respectively.
PRecording, PCollection, apply(), lapply(), as.matrix()
data("PRecording")
# add two columns of metadata
SampleData<-AddMetaData(SampleData,1:length(GetSweepNames(SampleData)),"ID1")
SampleData<-AddMetaData(SampleData,length(GetSweepNames(SampleData)):1,"ID2")
GetMetaData(SampleData,"ID1")
GetMetaData(SampleData)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.