Skip to contents

Construct a function that takes a data frame and returns another data frame with 0 values either removed or replaced.

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 like handle_zero_values_default to remove or replace zero values.