| regularly {businessPlanR} | R Documentation |
Generate list of repeating financial transactions
Description
For all years defined, generates a list of values as defined by pa
and due at the given month. The result can be used as input for the
.list argument of expense,
revenue,
and transaction.
Usage
regularly(
years,
pa,
month = "01",
last = 0,
first = 0,
merge = list(),
digits = 2
)
Arguments
years |
Integer vector, the range of years to cover. |
pa |
A vector with values for each year. This amounts to the total sum for the respective year. |
month |
Character,
but numeric description of a month in "MM" format when to account the values of |
last |
Defines the final entry, last month of the last year. It can be either
a numeric value (taken as-is), |
first |
Defines how to treat years if January was included in in |
merge |
Another list of values to be merged with the results, can be used for nested calls of this function to generate more complex patterns. |
digits |
Number of digits used for rounding when |
Value
A list of monthly transactions named in "YYYY.MM" scheme (regularly_delayed).
Examples
expense(
type="Operation",
category="Insurance",
name="Electronics",
missing="0",
.list=regularly(
years=2021:2025,
pa=rep(111.11, 5),
month="01",
last=0
)
)