recode_threat | R Documentation |
If a range of threat levels is given then the average of the two threat codes is used. E.g. a threat level of "Extreme - Moderate (11-100%)" would get a code of 4 which is the average of 3 (Moderate) and 5 (Extreme).
recode_threat(x, var, threat_code = threat_code)
x |
A character vector with the threat level |
var |
which threat component is being converted |
threat_code |
A data.frame with corresponding threat levels and codes |
a data.frame
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.