mbal_time: A list object of class 'time' for material balance models

Description Usage Arguments Value Examples

View source: R/mbal_oil_model.R

Description

Create an object of class 'time'

Usage

1
mbal_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 mbal_perform_oil(), mbal_perform_gas(), mbal_optim_oil(), mbal_optim_gas(), mbal_forecast_oil(), and mbal_forecast_gas() S3 methods

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
mbal_time_1 <- mbal_time(c(0:4) * 365, unit = "day")

mbal_time_1

mbal_time_2 <- mbal_time(c(0:4), unit = "month")

mbal_time_2

mbal_time_3 <- mbal_time(c(0:4), unit = "year")

mbal_time_3

mbal_time_4 <- mbal_time(seq(as.Date("2020/1/1"), by = "year",
length.out = 5), unit = "date")

mbal_time_4

Rmbal documentation built on July 8, 2020, 7:16 p.m.