Skip to contents

Extract elementary damages by categories of elementary components (floor, ceiling, wall, opening, coating and furniture).

Usage

extract_elementary_component_from_detail(x, what, room)

Arguments

x

list of elementary_damaging objects

what

character, the name of the category to be extracted

room

character, name of the room for which elementary_damaging will be extracted.

Value

a list of elementary_damaging objects

Details

This function is meant to be called during the calculation of damage functions

See also

extract_damage_detail_by_room() and extract_damage_detail_external_wall(), to handle the calculation of damage functions by rooms

Examples

# example for the category "wall" in "room_1"
test = extract_elementary_component_from_detail(
 x = adu_t[["damaging"]][["detail"]], 
 what = "wall",
 room = "room_1"
)