time_index: time_index

View source: R/Helpers.R

time_indexR Documentation

time_index

Description

Get the time index for a data.frame or xts

Usage

time_index(x, type = "character")

Arguments

x

(tsibble/list with tibble)

type
  • "character"/"c" (Default) (character) vector of the index

  • "value"/"v" (Date/Datetime) vector of values in the time index

  • "language"/"symbol"/"s"/"l" (symbol) for the time index

Value

(character/numeric) Either the name of the index, or the index itself based on name argument


jagg19/AlpacaforR documentation built on July 3, 2023, 12:14 p.m.