Learn R Programming

nixtlar (version 0.6.1)

.r_frequency: 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)

Value

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

Arguments

freq

The period or offset alias used by 'TimeGPT'.

Examples

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

Run the code above in your browser using DataLab