date_conversion {nixtlar}R Documentation

Infer frequency of a tsibble and convert its index to date or string.

Description

Infer frequency of a tsibble and convert its index to date or string.

Usage

date_conversion(df)

Arguments

df

A tsibble.

Value

A list with the inferred frequency and data frame with dates in format yyyy-mm-dd.

Examples

df <- AirPassengers
tsbl <- tsibble::as_tsibble(df)
names(tsbl) <- c("ds", "y")
date_conversion(tsbl)


[Package nixtlar version 0.5.2 Index]