Skip to contents

Add the detail and costs of each new material measure

Usage

elementary_adaptation_cost(
  measure_cost,
  material_costs,
  reference,
  component,
  replacement,
  what,
  elementary,
  sub_type = NULL,
  coating = NULL,
  insulating = NULL,
  render = NULL
)

Arguments

measure_cost

list of the different cost to be updated with the replacement measure

material_costs

additional data-frame filling cost gaps in floodam.building::COMPONENT_ELEMENTARY

reference

the model without measure

component

the model with adaptation measures

replacement

the list from l_part with the details of one material modification

what

the column of the two models to compare (column changed by the measures)

elementary

the column of the two models containing the elementary components

sub_type

second column of the model, needed to select a certain object (ex: window, door...)

coating

Null or column of coating material, if an element (floor, wall...) has a coating, add the price of the coating

insulating

Null or column of insulating material, if an element (floor, wall...) has an insulating, add the price of the insulating

render

Null or column of render material, if an element (floor, wall...) has a render, add the price of the render

Value

measure_cost, a list with the cost of prevention (only material modification) and repair (repair due to flood and modification of material at the same time) and the details