<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Get the Class Id of a Frequency</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="https://rpkg.net/assets/examples.css" />
</head><body>

<table width="100%" summary="page for get.class.id"><tr><td>get.class.id</td><td style="text-align: right;">R Documentation</td></tr></table>

<h2>Get the Class Id of a Frequency</h2>

<h3>Description</h3>

<p>Use this function to get the 'id' of a frequency class.
</p>


<h3>Usage</h3>

<pre>
get.class.id(frequency)
</pre>


<h3>Arguments</h3>

<table summary="R argblock">
<tr valign="top"><td><code>frequency</code></td>
<td>
<p>The frequency, which must be an <code>ldtf</code> object returned from the <code>f.?</code> functions.</p>
</td></tr>
</table>


<h3>Details</h3>

<p>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 <code>f.?</code> functions.
</p>


<h3>Value</h3>

<p>A character string that represents the class id of this frequency.
</p>


<h3>Examples</h3>

<pre>

freq &lt;- f.x.times.a.day(f.daily(c(2023,5,16)),13, 12)
freq_class_id &lt;- get.class.id(freq) # this will be 'da13|d'.

</pre>


</body></html>
