averaged_trials: Averages signals across trials

Description Usage Arguments Value Examples

Description

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

Usage

1
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

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

GCalcium documentation built on May 2, 2019, 9:31 a.m.