within_trial_change {GCalcium} | R Documentation |
Get mean activity change within a trial
Description
'within_trial_change' finds the change in mean values between beginning and end of entered time range.
Usage
within_trial_change(Dataframe, Trial, Beg.period = FALSE,
End.period = FALSE)
Arguments
Dataframe |
a GCalcium-format data frame or matrix |
Trial |
a single trial number |
Beg.period |
time frame of period 1 to be compared to period 2 |
End.period |
time frame of period 2 to be compared to period 1 |
Value
vector with AUC for each curve in a trial
Examples
# In trial 1, how much did the mean value change between -2s and 0s, and 0 and 2s?
df.new <- format_data(data = GCaMP)
within_trial_change(Dataframe = df.new, Trial = 1, Beg.period = c(-2, 0), End.period = c(0, 2))
[Package GCalcium version 1.0.0 Index]