check_data_sv_as_xts: Check the time series data and convert to xts

Description Usage Arguments Value

View source: R/arg_checks.R

Description

This function ensures that the input data is of type xts, ts or mts and converts it to an xts object. Furthermore, if no colnames are specified, default colnames will be applied. Moreover, punctuations in colnames will dropped to avoid errors when converting between different data types.

Usage

1
check_data_sv_as_xts(input_data, default_colname = "time_series")

Arguments

input_data

A 'ts', 'mts' or 'xts' object

default_colname

a string, default colname assigned when no colnames are defined

Value

xts object with punctuations dropped in colnames


xavierkamp/tsForecastR documentation built on Feb. 1, 2020, 10:16 a.m.