find_frequent_interval | R Documentation |
When we have trials of varying lengths, it can be helpful to find the interval of time shared by most of the trials.
find_frequent_interval(xs, min_freq = 0.8)
xs |
some set of values (times) |
min_freq |
the minimum frequency of times to keep |
a list with the minimum and maximum values that have a frequency of at least 80%.
times <- c(
-5:10, -10:10, -8:10, -8:10, -8:11, -8:13, -8:4,
-5:12, -10:9
)
find_frequent_interval(times)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.