
Generate furniture dataset for a building model
generate_furniture.Rdgenerate_furniture() assigns room types and generates a tabular dataset
describing the inventory of furniture and elementary components for each room.
Arguments
- model
list, spatial coordinate model generated by
generate_model_coordinate(). Must contain room named elements.- output_path
character, unused argument kept for signature compatibility.
Value
A data.frame containing the following columns:
component_elementary: character, identifier of the item type.room_name: character, target room identifier.wall_name: logical/character, associated wall (NAif unassigned).relative_height: numeric, elevation from floor level (cm).dilapidation: numeric, wear/aging factor.quantity: integer, number of units.v_min: numeric, minimum unit cost/volume threshold.v_max: numeric, maximum unit cost/volume threshold.details: character, descriptive label.
Details
The function extracts room names from model (ignoring "exterior", "door",
and "window") and assigns types sequentially:
1st room:
kitchen2nd room:
bathroom3rd room:
livingroomRemaining rooms:
bedroom
Each room type receives a predefined set of furniture items, sockets, and
appliances with characteristics such as cost range (v_min, v_max),
elevation (relative_height), and quantity.