perc_baseline {GCalcium}R Documentation

Find the percent change from baseline

Description

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

Usage

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

### 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))

[Package GCalcium version 1.0.0 Index]