update_operations<- {businessPlanR}R Documentation

Update operations objects

Description

You can use this method to add or replace transactions to an existing object of class operations.

Usage

update_operations(obj, cut_to_period = TRUE, warning = FALSE, as_transaction) <- value

## S4 replacement method for signature 'operations'
update_operations(obj, cut_to_period = TRUE, warning = FALSE,
      as_transaction) <- value

Arguments

obj

An object of class operations.

cut_to_period

Logical, whether to adjust the data of value to the period covered by obj. This means that missing months will be added with zero values, and months that lie beyond the covered period will be dropped. This only affects objects of class revenue and expense.

warning

Logical, if TRUE shows a warning when cut_to_period=TRUE and months are adjusted.

as_transaction

Optional list of vectors of arguments for value of class loan or depreciation, as used by as_transaction. If given, the object provided as value will also be processed as if as_transaction was also called. This is repeated for each vector of arguments.

value

An object of either class revenue, expense, loan, depreciation, or transaction_plan.

Value

An updated object of class operations.


[Package businessPlanR version 0.1-0 Index]