AddPRecording: Adds PRecording to PCollection

AddPRecordingR Documentation

Adds PRecording to PCollection

Description

[Stable]
Adds a PRecording to an existing PCollection

Usage

AddPRecording(
  X,
  PRecording,
  Names = if (is.list(PRecording)) {
     lapply(PRecording, function(x)
    x@RecordingParams@Filename)
 } else {
     PRecording@RecordingParams@Filename
 },
  Group = "Generic"
)

Arguments

X

A PRecording object

PRecording

a PRecording object, or list of PRecording objects.

Names

Name(s) for imported PRecording(s). Standard is the source file name as stored in the added a PRecording(s).

Group

Group variable or list thereof, of the same length as PRecording

Value

A PCollection object

Examples

# create a PCollection for testing
SampleCollection<-NewPCollection(SampleData,Names="A")
SampleCollection
# now add a PRecording
SampleCollection<-AddPRecording(SampleCollection, SampleData)
SampleCollection

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