perc_baseline: Find the percent change from baseline

Description Usage Arguments Value Examples

Description

'perc_baseline' calculates the percent change from a user-specified baseline period

Usage

1
perc_baseline(Dataframe, Baseline.times, Baseline.frame = FALSE)

Arguments

Dataframe

a GCalcium-format data frame or matrix

Baseline.times

range of time from Baseline.frame to compute the baseline value from

Baseline.frame

a GCalcium-format data frame or matrix containing the baseline period. If frame is not specified, Dataframe is automatically used

Value

a GCalcium-format data frame with values transformed to percent baseline

Examples

1
2
3
4
5
### Format data frame
df.new <- format_data(GCaMP)

### Transform into percent baseline: relative to -3s to -1s before epoc
perc_baseline(Dataframe = df.new, Baseline.times = c(-3, -1))

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