zero_proportion: Proportion of zeros

View source: R/thiyanga.R

zero_proportionR Documentation

Proportion of zeros

Description

Computes proportion of zeros in a time series

Usage

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(s)

Thiyanga Talagala


tsfeatures documentation built on Aug. 28, 2023, 5:09 p.m.