decline_time: Arps time object

Description Usage Arguments Value Examples

View source: R/Rdca_package.R

Description

Create an object of class 'time'

Usage

1
decline_time(x, unit = "day")

Arguments

x

a vector of times or a daily sequence of dates

unit

time/date unit of vector x

Value

a list of class 'time' with all the required parameters for the decline_predict() S3 methods

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
decline_time_1 <- decline_time(c(1:730), unit = "day")

decline_time_1

decline_time_2 <- decline_time(c(1:240), unit = "month")

decline_time_2

decline_time_3 <- decline_time(c(1:15), unit = "year")

decline_time_3

decline_time_4 <- decline_time(seq(as.Date("2020/1/1"), by = "days",
length.out = 360), unit = "date")

decline_time_4

Rdca documentation built on July 2, 2020, 3:59 a.m.