rescale.by.time {aRpsDCA}R Documentation

Time unit conversion for DCA

Description

Scales rates, declines, and time periods from one time unit to another.

Usage

rescale.by.time(value,
    from.period=c("year", "month", "day"),
    to.period=c("year", "month", "day"),
    method=c("decline", "rate", "time"))

Arguments

value

rate [volume / time], Arps nominal decline [1 / time], or time to be rescaled.

from.period

time period for value (default "year").

to.period

time period for result (default "year").

method

scaling method to be applied, depending upon the type of value (default "decline").

Value

Returns value scaled from from.period to to.period according to its type as specified by method.

See Also

as.nominal, as.effective.

Examples

## 3 MMscf/D to MMscf/year
rescale.by.time(3, from.period="day", to.period="year", method="rate")

## Nominal decline of 3.2/year to nominal decline per month
rescale.by.time(3.2, from.period="year", to.period="month", method="decline")

## 5 years in days
rescale.by.time(5, from.period="year", to.period="month", method="time")

[Package aRpsDCA version 1.1.1 Index]