Description Usage Arguments Value Examples
View source: R/distance_between_peaks.R
'distance_between_peaks' finds the distance between wave peaks
1 | distance_between_peaks(dataframe, trial, time.range, n.points = 3)
|
dataframe |
a fluoR-format dataframe |
trial |
trial number for input |
time.range |
range of time to subset |
n.points |
the number of decreasing data points on left and right of inflection point required to be considered a "peak" |
a dataframe of information on peaks and differences between them
1 2 3 4 5 | ### Format data frame
df <- format_data(GCaMP)
### Find distance between peaks for 4s post-stimulus onset for trial 2
distance_between_peaks(dataframe = df, trial = 2, time.range = c(0, 4))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.