Skip to contents

S4 object of class Sector

Value

Object of class Case.

Slots

project

a data.frame.

action

a data.frame.

sector

a list of sectors.

event

a matrix of events (default to NULL if not needed).

synthesis

a data.frame of synthesis (default to NULL if not given).

calendar

a list of calendar by projects (default to NULL if not given, then it will be computed).

impact

an array summarizing impacts (default to NULL if not given, then it will be computed).

characteristic

a list of characteristics for case (default to NULL if not given, then it will be computed).

Author

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

Examples


path = system.file("extdata", "case", "complete.ods", package = "floodam.cba")
complete = import_case(path)
#> import Case from /tmp/RtmpjNcOmL/temp_libpath10f482a1651db/floodam.cba/extdata/case/complete.ods
#>  ... done
compute_efficiency(complete)
#>          complete reinforcement
#> npv   1728.395002   3987.806119
#> bcr      1.142583      1.627997
#> h_min   31.000000     12.000000
compute_synthesis(complete)
#>              complete reinforcement
#> npv      1728.3950023 3987.80611878
#> bcr         1.2129645    3.25903870
#> h_min      31.0000000   12.00000000
#> cost_hab          Inf          -Inf
#> cost_emp          Inf          -Inf
#> aad_pos   279.3611356   74.34670245
#> aad_neg  -141.8787984  -18.58667561
#> dam_eff     0.1050065    0.04258848
#> hab_eff            NA            NA
#> emp_eff            NA            NA
#> aadd      163.5421950   62.71222500
#> aad_ori  1309.2750000 1309.27500000
#> aad_fin  1145.7328050 1246.56277500
#> aadd_eff    0.1249105    0.04789844
#> aah_ori            NA            NA
#> aah_fin            NA            NA
#> aadh_eff           NA            NA
#> aae_ori            NA            NA
#> aae_fin            NA            NA
#> aade_eff           NA            NA
path = system.file("extdata", "case", "simple.ods", package = "floodam.cba")
simple = import_case(path)
#> import Case from /tmp/RtmpjNcOmL/temp_libpath10f482a1651db/floodam.cba/extdata/case/simple.ods
#>  ... done
path = system.file("extdata", "case", "simple_event.ods", package = "floodam.cba")
simple_event = import_case(path)
#> import Case from /tmp/RtmpjNcOmL/temp_libpath10f482a1651db/floodam.cba/extdata/case/simple_event.ods
#>  ... done