powered by
ts
Date
vector
Convert ts index to Date vector
get.dtindex(data, is.tsp = FALSE, is.date = NULL)
ts instance
Logical frag whether data is tsp itself or not
tsp
Logical frag indicates whether the stats::ts is date or not. If not provided, regard the input as date when the frequency is 4 or 12.
stats::ts
if (FALSE) { ggfortify:::get.dtindex(AirPassengers) ggfortify:::get.dtindex(UKgas) ggfortify:::get.dtindex(Nile, is.date = FALSE) ggfortify:::get.dtindex(Nile, is.date = TRUE) }
Run the code above in your browser using DataLab