consecutive_trial_change {GCalcium} | R Documentation |
Compare mean activity in consecutive trials
Description
'consecutive_trial_change' finds the change in means between consecutive trials.
Usage
consecutive_trial_change(Dataframe, Trials, Time.period)
Arguments
Dataframe |
a GCaMP-format data frame or matrix |
Trials |
range of trial numbers to be compared |
Time.period |
range of time to be compared |
Value
Data frame with the "Mean.Change" column representing differences in means between trial n and trial n + 1 for the user-inputted range of trials.
Examples
### How much did the mean value change after epoc between consecutive trials in trials 1-10?
df.new <- format_data(data = GCaMP)
consecutive_trial_change(Dataframe = df.new, Trials = c(1, 10), Time.period = c(0, 4))
[Package GCalcium version 1.0.0 Index]