avg_curve_slope: Get average curve slopes

Description Usage Arguments Value Note Examples

View source: R/avg_curve_slope.R

Description

'avg_curve_slope' finds the average curve slopes for a trial using inflect_points_df and lm

Usage

1
avg_curve_slope(Dataframe, Trial)

Arguments

Dataframe

a GCalcium-format data frame or matrix

Trial

a single trial number

Value

vector of average rate of change for each curve

Note

curves of a single value will result in the average slope being labeled as NA

Examples

1
2
df.new <- format_data(data = GCaMP)
avg_curve_slope(Dataframe = df.new, Trial = 1)

atamalu/GCalcium documentation built on July 12, 2019, 7:04 p.m.