consecutive_trial_change: Compare mean activity in consecutive trials

Description Usage Arguments Value Examples

View source: R/consecutive_trial_change.R

Description

'consecutive_trial_change' finds the change in means between consecutive trials.

Usage

1
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

1
2
3
### 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))

atamalu/GCalcium documentation built on July 12, 2019, 7:04 p.m.