dot-r_frequency: Convert period or offset aliases to a character string...

.r_frequencyR Documentation

Convert period or offset aliases to a character string recognized by R. This is a private function of 'nixtlar'

Description

Convert period or offset aliases to a character string recognized by R. This is a private function of 'nixtlar'

Usage

.r_frequency(freq)

Arguments

freq

The period or offset alias used by 'TimeGPT'.

Value

A character string recognized by R for generating a regular sequence of times.

Examples

.r_frequency("MS")   # Returns "month"
.r_frequency("10h")  # Returns "10 h"
.r_frequency("h")    # Returns "h" (unchanged)

nixtlar documentation built on Oct. 30, 2024, 5:07 p.m.