utils_time_units function

Data Frame with Supported Time Units

Data Frame with Supported Time Units

Returns a data frame with the names of the supported time units, the classes that can handle each time unit, and a the threshold used to identify what time units can be used when aggregating a time series.

utils_time_units(all_columns = FALSE, class = NULL)

Arguments

  • all_columns: (optional, logical) If TRUE, all columns are returned. Default: FALSE
  • class: (optional, class name). Used to filter rows and columns. Accepted values are "numeric", "Date", and "POSIXct". Default: NULL

Returns

data frame

Examples

df <- utils_time_units() head(df)

See Also

Other internal_time_handling: utils_as_time(), utils_coerce_time_class(), utils_is_time(), utils_new_time(), utils_time_keywords(), utils_time_keywords_dictionary(), utils_time_keywords_translate()

  • Maintainer: Blas M. Benito
  • License: MIT + file LICENSE
  • Last published: 2025-02-01