statistic_fun: Get the biggest number of consecutive NA Values

get_gap_in_vectorR Documentation

Get the biggest number of consecutive NA Values

Description

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.

Usage

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)

Arguments

x

Vector

Value

number longest consecutive NA values


Ostluft/rOstluft documentation built on Feb. 6, 2024, 1:26 a.m.