get_ts_frequency: Get the period of an vector object.

Description Usage Arguments Value Examples

Description

This is a function to find the period of an vector object. The vector object is representing a time series. As input is only required an object from the class time series. Otherwise the function returns an error message. The code is adopted from Hyndman, Rob J. which provides him under: https://robjhyndman.com/hyndsight/tscharacteristics/

Usage

1

Arguments

x

A vector object representing a time series.

Value

The period of x. If the input is not a vector, an error message is returned.

Examples

1
2
ts_vector = c(1,4,6,1,24,5,1)
get_ts_frequency(x = ts_vector)

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