freq_xts {seastests}R Documentation

Obtain the frequency of an xts time series

Description

Estimate the number of periods per year of an xts time series

Usage

freq_xts(series)

Arguments

series

time series

Details

The function gives back the average number of observations per year calculated on the whole series except for the first and the last year.

Author(s)

Daniel Ollech

Examples

x <- xts::xts(rnorm(100), seq.Date(from=as.Date("2010-01-01"), by="months", length.out=100))
frequency(x)

[Package seastests version 0.15.4 Index]