Learn R Programming

tdata (version 0.3.0)

get.class.id0: 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)

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.

Arguments

frequency

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

See Also

get.class.id

Examples

Run this code

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)

Run the code above in your browser using DataLab