det_eriorate: The deterioration of one blockbuster row through one time...

Description Usage Arguments Value See Also Examples

View source: R/deteriorate.R

Description

Since changes to how the internal concated variable is created the function used to require this variable to be part of the input dataframe row. However given more recent change to looking up det rates by elementid we can do away with this.

Usage

1
det_eriorate(blockbuster_initial_state_row)

Arguments

blockbuster_initial_state_row

a blockbuster dataframe or tibble single row. Can only accept one row at a time due to how grep works in det_what_tm. Technical debt.

Value

A one (if row is condition E) or two row tibble containing the unit_area and condition of the element sub_element constr_type combination after one time period. This is handled within the function by creating two intermediary objects; same grade and different grade. The ouput duplicates all other variables and values. The timestep also needs to increase by one given deterioration has occurred.

See Also

blockbuster_det_data

Examples

1
one_year_later <- det_eriorate(blockbuster_pds[1, ])

DFE-Capital/blockbuster documentation built on March 19, 2018, 4:09 a.m.