as.data.frame | R Documentation |
Converts PRecording or PCollection into a data frame in a long representation, analog to tidyR's gather()/pivot_longer().
## S4 method for signature 'PRecording'
as.data.frame(x, row.names = NULL, optional = FALSE, ...)
x |
A PRecording or PCollection object. |
row.names , optional , ... |
Unused. |
A data.frame
.
PRecording
: Method for PRecording
as.data.frame(), gather(), pivot_longer()
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.