averaged_trials {GCalcium}R Documentation

Averages signals across trials

Description

'averaged_trials' averages values over each time point, across the specified trials

Usage

averaged_trials(Dataframe, Trials)

Arguments

Dataframe

a GCalcium-format data frame or matrix

Trials

numbers of trials to be averaged across

Value

a data frame with observation times and averaged values

Examples

### Format data frame
df.new <- format_data(GCaMP)

### Plot the average fluorescence signal across trials 1-5
df.1thru5 <- averaged_trials(df.new, 1:5)

plot(x = df.1thru5$Time, df.1thru5$Values)

[Package GCalcium version 1.0.0 Index]