blockcoster_lookup: A lookup table for repair cost rate given a building...

Description Usage Arguments Details Value See Also Examples

View source: R/blockcoster.R

Description

An internal function in blockbuster to select the correct repair cost constant for a building component and its condition grade. It works by matching on the concatenated elementid and grade.

Usage

1
2
blockcoster_lookup(the_elementid, the_grade,
  costs_lookup = blockbuster_pds_repair_costs)

Arguments

the_elementid

the building component unique identifier found in the PDS.

the_grade

the grade of a blockbuster tibble single row (a factor with 6 levels).

costs_lookup

the relevant costs look up table, default is derived from PDS 2016 costs

Details

The default is to use the repair cost estimates for the PDS plus an E grade cost estimator based on D grade cost plus 5 is likely to be a source of error as the replacement of a decommisioned component depends on the component as well as other complexities. This should be addressed in later improvements of the blockbuster.

Value

a numeric constant for the repair cost of building component by grade, in pounds per unit_area.

See Also

blockbuster_pds_repair_costs

Examples

1
2
3
x <- blockcoster_lookup(
blockbuster_pds[1:10, ]$elementid,
 blockbuster_pds[1:10, ]$grade)

DFE-Capital/blockbuster documentation built on May 26, 2019, 7:23 a.m.