get.dtindex.continuous: Get 'Date' 'vector' continue to 'ts' index

Description Usage Arguments Value Examples

View source: R/tslib.R

Description

Get Date vector continue to ts index

Usage

1
get.dtindex.continuous(data, length, is.tsp = FALSE, is.date = NULL)

Arguments

data

ts instance

length

A number to continue

is.tsp

Logical frag whether data is tsp itself or not

is.date

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.

Value

vector

Examples

1
2

Example output

Loading required package: ggplot2
 [1] "1961-01-01" "1961-02-01" "1961-03-01" "1961-04-01" "1961-05-01"
 [6] "1961-06-01" "1961-07-01" "1961-08-01" "1961-09-01" "1961-10-01"
 [1] "1987-01-01" "1987-04-01" "1987-07-01" "1987-10-01" "1988-01-01"
 [6] "1988-04-01" "1988-07-01" "1988-10-01" "1989-01-01" "1989-04-01"

ggfortify documentation built on May 26, 2018, 5:04 p.m.