get.class.id0: Convert Frequency to Character and Class Id

View source: R/generics_f.R

get.class.id0R Documentation

Convert Frequency to Character and Class Id

Description

This function returns the output of the as.character.ldtf and get.class.id functions.

Usage

get.class.id0(frequency)

Arguments

frequency

The value of the frequency, which must be an ldtf object returned from the f.? functions.

Value

A list with the following items:

  • value: The string representation of the frequency. If you only want this, use the as.character() function.

  • day: The class Id of this frequency. If you only want this, use the get.class.id function.

  • classType: The type of the class.

See Also

get.class.id

Examples


freq <- f.x.times.a.day(f.daily(c(2023,5,16)),13, 12)
freq_class_id <- get.class.id0(freq)

freq1 <- f.monthly(2020,3)
freq1_class_id <- get.class.id0(freq1)

tdata documentation built on Nov. 7, 2023, 5:07 p.m.