Skip to contents

Get date or datetime variables (column names)

Usage

ts_get_date_columns(.data)

Arguments

.data

An object of class data.frame

Value

A vector containing the column names that are of date/date-like classes.

Details

ts_get_date_columns returns the column names of date or datetime variables in a data frame.

Author

Steven P. Sanderson II, MPH

Examples

ts_to_tbl(AirPassengers) %>%
  ts_get_date_columns()
#> [1] "index"    "date_col"