Description Usage Arguments Value Examples
View source: R/summarize_trials.R
'summarize_trials' performs the specified summary statistic across trials for all applicable timestamps
1 | summarize_trials(dataframe, trials, summary.type = "mean")
|
dataframe |
a fluoR-format dataframe |
trials |
a vector of trials to summarize across |
summary.type |
the type of summary statistic to compute |
a dataframe of timestamps and summarized trial values
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.