Learn R Programming

Rdca (version 0.1.0)

decline_time: Arps time object

Description

Create an object of class 'time'

Usage

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

Run this code
# NOT RUN {
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
# }

Run the code above in your browser using DataLab