Skip to contents

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

Usage

HandleMissingValues(na_remove = FALSE, na_replace = NULL)

Arguments

na_remove

boolean value, if TRUE remove NAs in series variable

na_replace

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

Value

A function like handle_missing_values_default that removes or replaces missing values.