Skip to contents

Remove or replace series variable values that are zero.

Usage

HandleZeroValues(zero_remove = FALSE, zero_replace = NULL)

Arguments

zero_remove

boolean value, if `TRUE` remove zeroes in series variable

zero_replace

numeric value to replace zeroes in series variable, if NULL no replacement is performed

Value

a function to remove or replace zero values.

## Returned Function

- Arguments * `data` data frame containing time series data * `series_variable` column name of series variable in `data`, default is "deaths" - Return - all fields in `data` with either zero records removed or replaced