Free Access Week-  Data Engineering + BI
Data engineering and BI courses are free!
Free AI Access Week from June 2-8

GCalcium (version 1.0.0)

consecutive_trial_change: 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

Run this code
# 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