is_date_time {gtsummary} | R Documentation |
Is a date/time
Description
is_date_time()
: Predicate for date, time, or date-time vector identification.
Usage
is_date_time(x)
Arguments
x |
a vector |
Value
a scalar logical
Examples
iris |>
dplyr::mutate(date = as.Date("2000-01-01") + dplyr::row_number()) |>
lapply(gtsummary:::is_date_time)
[Package gtsummary version 2.3.0 Index]