get_gap_in_vector | R Documentation |
Probably not the fastest way to do it. Compared with a loop approach. The loop is a lot faster for short vectors. But for 17500 elements (1 year min30 data) this is faster. But In the end the perfomance don't really matters.
get_gap_in_vector(x)
statistic_mean(x)
statistic_median(x)
statistic_sd(x)
statistic_n(x)
statistic_sum(x)
statistic_max(x)
statistic_min(x)
statistic_coverage(x)
statistic_aot40k(x)
get_statistic_percentile(percentile)
get_statistic_limit_gt(limit)
get_statistic_limit_gte(limit)
get_statistic_limit_lt(limit)
get_statistic_limit_lte(limit)
x |
Vector |
number longest consecutive NA values
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.