Description Usage Arguments Value Examples
View source: R/utils-subsetting-time-series.R
Compute the indices corresponding to a defined subset
1 | compute_subset_range(bounds, n)
|
bounds |
the vector with lower and upper bound, expressed as numeric fractions of the time series in [0, 1] |
n |
the totla length of the vector to subset |
the indices corresponding to the subset defined by bounds
on a
vector of length n
1 2 | compute_subset_range(c(0, 0.5), 10) # 1:5
compute_subset_range(c(0.5, 1), 10) # 6:10
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.