Description Usage Arguments Value
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.
1 | check_data_sv_as_xts(input_data, default_colname = "time_series")
|
input_data |
A 'ts', 'mts' or 'xts' object |
default_colname |
a string, default colname assigned when no colnames are defined |
xts object with punctuations dropped in colnames
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.