as.data.frame: Converts PRecording or PCollection into a long data frame

as.data.frameR Documentation

Converts PRecording or PCollection into a long data frame

Description

[Stable]
Converts PRecording or PCollection into a data frame in a long representation, analog to tidyR's gather()/pivot_longer().

Usage

## S4 method for signature 'PRecording'
as.data.frame(x, row.names = NULL, optional = FALSE, ...)

Arguments

x

A PRecording or PCollection object.

row.names, optional, ...

Unused.

Value

A data.frame.

Methods (by class)

  • PRecording: Method for PRecording

See Also

as.data.frame(), gather(), pivot_longer()

Examples

data(PRecording)
# Subset SampleData to only keep three time points and convert into data.frame
as.data.frame(GetData(SampleData,Time = c(0.4,0.8,1.2),TimeExclusive = T))

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