within_trial_change: Get mean activity change within a trial

Description Usage Arguments Value Examples

Description

'within_trial_change' finds the change in mean values between beginning and end of entered time range.

Usage

1
2
within_trial_change(Dataframe, Trial, Beg.period = FALSE,
  End.period = FALSE)

Arguments

Dataframe

a GCalcium-format data frame or matrix

Trial

a single trial number

Beg.period

time frame of period 1 to be compared to period 2

End.period

time frame of period 2 to be compared to period 1

Value

vector with AUC for each curve in a trial

Examples

1
2
3
# In trial 1, how much did the mean value change between -2s and 0s, and 0 and 2s?
df.new <- format_data(data = GCaMP)
within_trial_change(Dataframe = df.new, Trial = 1, Beg.period = c(-2, 0), End.period = c(0, 2))

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