within_trial_change {GCalcium} | R Documentation |
'within_trial_change' finds the change in mean values between beginning and end of entered time range.
within_trial_change(Dataframe, Trial, Beg.period = FALSE,
End.period = FALSE)
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 |
vector with AUC for each curve in a trial
# 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))