predict_missing_observations: Replace all missing observations of a time series or vector...

Description Usage Arguments Value Examples

Description

This is a function to Replace all missing observations of a time series or vector object. For na_option is only required the string 'mean' or 'kalman' allowed. This means, that all na values are either replaced by the mean, or kalman imputation of the ts. The standard value of na_option is 'mean'. Otherwise the function returns an error message.

Usage

1
predict_missing_observations(ts, na_option = "mean")

Arguments

ts

A time series or vector object.

na_option

A string value containing either 'mean' or'kalman'; Standard values is 'mean'.

Value

The na imputated ts. If the input is not a ts or vector, an error message is returned.

Examples

1

mowomoyela/tstaxonomyr documentation built on May 15, 2019, 4:47 p.m.