is_date_time: Is a date/time

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

gtsummary documentation built on Oct. 5, 2024, 1:06 a.m.