Deagg_to_MR_Hazd | R Documentation |
This function takes the deaggregation results (could be multiple sites, multiple intensity measures, and multiple return period or intensity measure level) and converts them to magntiude and/or distance hazard distribution
Deagg_to_MR_Hazd(
Deagg_df,
Deagg_level = "ReturnPeriod",
IM_type = "IM_type",
IM_level = "IM_level",
SiteName = "SiteName",
Magnitude = "Magnitude",
R_distance = "R_distance",
HazdContrition = "HazardContribution",
AERate = "AnnualExceedanceRate",
distribution = "cdf"
)
Deagg_df |
A dataframe contains the deaggregation results. It must contain at least six or seven (if both magnitude and distance hazard distributions are interested) columns: intensity measure type, intensity measure level, site name, magnitude and/or distance bins for deaggregation, hazard contribution from each magnitude or distance bin, and the hazard annual exceedance rate. Note for the intensity measure type, it could be PGA, PGV or PSA at any oscillator periods. If PSA is interested, please input the numeric oscillator periods (e.g., 0.01 and 0.5 for PSA at 0.01 sec and 0.5 sec, respectively) |
Deagg_level |
The variable (column) name in |
IM_type |
The variable (column) name in |
IM_level |
The variable (column) name in |
SiteName |
The variable (column) name in |
Magnitude |
The variable (column) name in |
R_distance |
The variable (column) name in |
HazdContrition |
The variable (column) name in |
AERate |
The variable (column) name in |
distribution |
The distribution representation. "cdf" stands for cumulative hazard and "pdf" stands for discrete bin hazard. |
A dataframe with six or seven (if both magnitude and distance hazard distributions are interested) columns is returned, the columns inlcude IM_type, Deagg_level, SiteName, IM_level, Hazd, Magnitude/R_distance (or MagRType and MagR)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.