Learn R Programming

distantia (version 2.0.2)

utils_is_time: Title

Description

Title

Usage

utils_is_time(x = NULL)

Value

logical

Arguments

x

(required, vector) Vector to test. If the class of the vector elements is 'numeric', 'POSIXct', or 'Date', the function returns TRUE. Default: NULL.

See Also

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

Examples

Run this code

utils_is_time(
  x = c("2024-01-01", "2024-02-01")
)

utils_is_time(
  x = utils_as_time(
    x = c("2024-01-01", "2024-02-01")
    )
)

Run the code above in your browser using DataLab