Computes proportion of zeros in a time series

zero_proportion(x, tol = 1e-08)

Arguments

x

a univariate time series

tol

tolerance level. Absolute values below this are considered zeros.

Value

A numeric value.

Author

Thiyanga Talagala