mg_function_impute_spreaded_ts: mg_function_impute_spreaded_ts

Description Usage Arguments Value Examples

View source: R/mg_function_impute_spreaded_ts.R

Description

impute spreaded time series using package imputeTS

Usage

1
2
3
4
5
6
7
mg_function_impute_spreaded_ts(
  spreaded_ts,
  plot_impute,
  export_path = NA,
  imputeTS_model = "StructTS",
  imputeTS_type = "trend"
)

Arguments

spreaded_ts

spreaded df with time series data (e.g. from function mg_function_extract_spreaded_ts)

plot_impute

True/False if time series with imputed values should be plotted

export_path

export path for plots

imputeTS_model

type of model passed to impute TS function, default is StructTS

imputeTS_type

type of type passed to impute TS function, default is "trend"

Value

dataframe of the time series in wide format with equal distances:

Examples

1
2
3
spreaded_ts<- mg_function_extract_spreaded_ts(start_zeitpunkt = df_complete_time_series$number_of_timeseries$start_zeitpunkt[1],
                                              input_settings = df_complete_time_series$input_settings,
                                              df = wasserstand_projekt)

mghydro/LSHydroMG documentation built on Jan. 28, 2022, 3:31 p.m.