S4 object of class Characteristic

Arguments

correction

logical, should correction be made at initialization.

Value

Object of class Characteristic.

Slots

flood

character, name of the different flood events considered..

scenario

character, name of the different scenarios considered.

state

character, name of the different states considered.

stake_dam

character, name of the different stakes considered for damage estimation.

stake_com

character, name of the different stakes considered for complement estimation.

Author

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

Examples


Characteristic()
#> Warning: Some mandatory stake_dam are missing (activity, agriculture, dwelling, public). They are added.
#> Warning: Some mandatory stake_com are missing (inhabitant, employee, household, enterprise). They are added.
#> An object of class "Characteristic"
#>  @flood - 0 modalities:
#>    ""
#>  @scenario - 0 modalities:
#>    ""
#>  @state - 0 modalities:
#>    ""
#>  @stake_dam - 4 modalities:
#>    "activity" "agriculture" "dwelling" "public"
#>  @stake_com - 4 modalities:
#>    "inhabitant" "employee" "household" "enterprise"
if (FALSE) Characteristic(correction = FALSE)
Characteristic(state = c(1, 1))
#> Warning: Some mandatory stake_dam are missing (activity, agriculture, dwelling, public). They are added.
#> Warning: Some mandatory stake_com are missing (inhabitant, employee, household, enterprise). They are added.
#> Warning: state had duplicated vales (1)
#> An object of class "Characteristic"
#>  @flood - 0 modalities:
#>    ""
#>  @scenario - 0 modalities:
#>    ""
#>  @state - 1 modality:
#>    "1"
#>  @stake_dam - 4 modalities:
#>    "activity" "agriculture" "dwelling" "public"
#>  @stake_com - 4 modalities:
#>    "inhabitant" "employee" "household" "enterprise"

char_01 = Characteristic(
 flood = c("flood.min", "flood.A", "flood.B", "flood.C", "flood.max"),
 scenario = c("normal"),
 state = 1:2,
 stake_dam = c("dwelling", "activity", "agriculture", "public")
)
#> Warning: Some mandatory stake_com are missing (inhabitant, employee, household, enterprise). They are added.