tk_get_timeseries_variables: Get date or datetime variables (column names)

Description Usage Arguments Details Value Examples

View source: R/utils-dates.R

Description

Get date or datetime variables (column names)

Usage

1

Arguments

data

An object of class data.frame

Details

tk_get_timeseries_variables returns the column names of date or datetime variables in a data frame. Classes that meet criteria for return include those that inherit POSIXt, Date, zoo::yearmon, zoo::yearqtr. Function was adapted from padr:::get_date_variables(). See padr helpers.R

Value

tk_get_timeseries_variables returns a vector containing column names of date-like classes.

Examples

1
2
3
4
5

timetk documentation built on Nov. 16, 2021, 9:26 a.m.