Learn R Programming

timetk (version 2.9.0)

tk_get_timeseries_variables: Get date or datetime variables (column names)

Description

Get date or datetime variables (column names)

Usage

tk_get_timeseries_variables(data)

Value

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

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

Examples

Run this code
library(dplyr)

FANG %>%
    tk_get_timeseries_variables()

Run the code above in your browser using DataLab