Learn R Programming

distantia (version 2.0.0)

utils_time_units: Data Frame with Supported Time Units

Description

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.

Usage

utils_time_units(all_columns = FALSE, class = NULL)

Value

data frame

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

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()

Examples

Run this code

df <- utils_time_units()
head(df)

Run the code above in your browser using DataLab