Learn R Programming

GCalcium (version 1.0.0)

perc_baseline: 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

Run this code
# NOT RUN {
### 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))
# }

Run the code above in your browser using DataLab