ClearMetaData | R Documentation |
Clears the specified columns from the MetaData slot of a PRecording
object.
ClearMetaData(
X,
columns = try(colnames(GetMetaData(X)), silent = T),
Verbose = T
)
X |
A PRecording or PCollection object |
columns |
A character vector specifying the columns to clear. Defaults to all columns in the MetaData slot. |
Verbose |
Logical indicating whether to display warnings for non-existing columns. Defaults to |
This method clears the specified columns from the MetaData slot of a PRecording or PCollection object. If all columns are cleared,
the MetaData slot and the associated .MetaDataFx
slot are reset to empty values. If only specific columns are cleared,
the corresponding columns in the MetaData slot are removed.
The modified PRecording or PCollection object with the specified columns cleared from the MetaData slot.
ClearMetaData
: This method clears the specified columns from the MetaData slot of a PRecording
object.
PRecording PCollection AddMetaData
# Create a PRecording object with MetaData
data("PRecording")
# add two columns of metadata
SampleData<-AddMetaData(SampleData,1:length(GetSweepNames(SampleData)),"ID1")
SampleData<-AddMetaData(SampleData,length(GetSweepNames(SampleData)):1,"ID2")
SampleData<-AddMetaData(SampleData,length(GetSweepNames(SampleData)):1,"ID3")
SampleData
# Clear the "ID1" and "ID2" columns from the MetaData slot
cleared_SampleData <- ClearMetaData(SampleData, columns = c("ID1", "ID2"))
cleared_SampleData
# Clear all columns from the MetaData slot
cleared_SampleData2 <- ClearMetaData(SampleData)
cleared_SampleData2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.