tk_get_frequency function

Automatic frequency and trend calculation from a time series index