`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)
a GCalcium-format data frame or matrix
a single trial number
time frame of period 1 to be compared to period 2
time frame of period 2 to be compared to period 1
vector with AUC for each curve in a trial
# NOT RUN {
# 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))
# }
Run the code above in your browser using DataLab