Extract some values information of a model

extract_value(
  model,
  room = NULL,
  furniture = NULL,
  category = NULL,
  model_name = NULL,
  verbose = getOption("floodam_building_verbose")
)

Arguments

model

an object of class model

room

a data.frame describing room of a model, set to model[["data_table"]][["room"]] if model is provided.

furniture

a data.frame describing furniture of a model, set to model[["data_table"]][["furniture"]] if model is provided.

category

a character vector describing category of a model, set to model[["category"]] if model is provided.

model_name

a character scalar giving names of a model, set to model[["name"]] if model is provided.

verbose

logical, default to getOption("floodam_building_verbose")

Value

An list of value organized as follow

surface

a data.frame with 'internal' and 'external' surfaces. Surfaces are estimated at storey level, maximum is taken.

monetary

a data frame with the estimation of total monetary value replacement for elementary components classified according to the 'category' of the model

Examples

if (FALSE) {
model = analyse_model(
     model = "simple",
     path = init_create_path(
         input = system.file("extdata", package = "floodam.building"),
         output = file.path(tempdir(), "test")
     ),
     stage = c("load", "extract")
)
extract_value(model)
}