avg_curve_slope: Get average curve slopes

Description Usage Arguments Value Note Examples

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)

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