Skip to contents

Compute all indicators for a case

Usage

compute_synthesis(
  case,
  reference = getOption("floodam.cba")[["reference"]],
  rate = getOption("floodam.cba")[["rate"]],
  type = "automatic",
  output = "indicator"
)

Arguments

case

An object of class 'Case'.

reference

String, designing the reference project.

rate

String, designing which type of rate should be used.

type

String, does "simple" or "probabilistic" calendar shall be used.

output

String, what shall function return (either "indicator", "calendar" or "state").

Value

Matrix with all indicators

Author

Frédéric Grelot, frederic.grelot.1994_cran@m4x.org

Examples

 
case_complete = import_case(system.file("extdata", "case", "complete.ods", package = "floodam.cba"))
#> import Case from /tmp/Rtmp3AO9yw/temp_libpath6c9dc71a2b1f/floodam.cba/extdata/case/complete.ods
#>  ... done
compute_synthesis(case_complete)
#>               complete reinforcement
#> npv      -1.620157e+03 3987.80611878
#> bcr       7.951837e-01    3.25903870
#> h_min              Inf   12.00000000
#> cost_hab           Inf          -Inf
#> cost_emp           Inf          -Inf
#> aad_pos   1.785016e+02   74.34670245
#> aad_neg  -1.360446e+02  -18.58667561
#> dam_eff   4.090144e-02    0.05371699
#> hab_eff             NA            NA
#> emp_eff             NA            NA
#> aadd      4.629886e+01   62.71222500
#> aad_ori   1.038033e+03 1038.03333333
#> aad_fin   9.917345e+02  975.32110833
#> aadd_eff  4.460248e-02    0.06041446
#> aah_ori             NA            NA
#> aah_fin             NA            NA
#> aadh_eff            NA            NA
#> aae_ori             NA            NA
#> aae_fin             NA            NA
#> aade_eff            NA            NA