Description Usage Arguments Value Examples
'moving_window' summarizes data within windows of a certain length.
1 | moving_window(Dataframe, Trial, Window.length, FUN = mean)
|
Dataframe |
a GCalcium-format data frame or matrix |
Trial |
a single trial number |
Window.length |
length of time each window encompasses |
FUN |
a function to apply to each window |
a data frame with start and stop times of each window, the chronological number of each window, and summarized values
1 2 3 4 5 | ### Format data frame
df.new <- format_data(GCaMP)
### In trial 5, how does the average fluorescence change in 1 second time frames?
moving_window(Dataframe = df.new, Trial = 5, Window.length = 1, FUN = mean)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.