Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

GCalcium (version 1.0.0)

within_trial_change: Get mean activity change within a trial

Description

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

Usage

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

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

Run the code above in your browser using DataLab