`consecutive_trial_change` finds the change in means between consecutive trials.
consecutive_trial_change(Dataframe, Trials, Time.period)
a GCaMP-format data frame or matrix
range of trial numbers to be compared
range of time to be compared
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.
# NOT RUN {
### 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))
# }
Run the code above in your browser using DataLab