avg_curve_slope {GCalcium} | R Documentation |
Get average curve slopes
Description
'avg_curve_slope' finds the average curve slopes for a trial using inflect_points_df and lm
Usage
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
df.new <- format_data(data = GCaMP)
avg_curve_slope(Dataframe = df.new, Trial = 1)
[Package GCalcium version 1.0.0 Index]