summarize_trials: Summarize data across trials

Description Usage Arguments Value Examples

View source: R/summarize_trials.R

Description

'summarize_trials' performs the specified summary statistic across trials for all applicable timestamps

Usage

1
summarize_trials(dataframe, trials, summary.type = "mean")

Arguments

dataframe

a fluoR-format dataframe

trials

a vector of trials to summarize across

summary.type

the type of summary statistic to compute

Value

a dataframe of timestamps and summarized trial values

Examples

1
2
3
4
5
6
7
8
### Format data frame
df <- format_data(GCaMP)

### Average across trials 1, 2, 3, and 4
trial.vec <- c(1, 2, 3, 4)
type <- 'mean'

summarize_trials(dataframe = df, trials = trial.vec, summary.type = type)

atamalu/fluoR documentation built on Dec. 7, 2020, 4:48 a.m.