get.class.id {tdata} | R Documentation |
Get the Class Id of a Frequency
Description
Use this function to get the 'id' of a frequency class.
Usage
get.class.id(frequency)
Arguments
frequency |
The frequency, which must be an |
Details
You need this 'id' to convert the character back to the object. Some frequencies have a constant class id, such as 'm' for 'monthly' data. Some class 'ids' have parameters in them. Note that the format is explained in the f.?
functions.
Value
A character string that represents the class id of this frequency.
Examples
freq <- f.x.times.a.day(f.daily(c(2023,5,16)),13, 12)
freq_class_id <- get.class.id(freq) # this will be 'da13|d'.
[Package tdata version 0.3.0 Index]