Given a dataframe, specify a variable to be the overall risk field and loop through all other fields and score them on whether the observation is closest to the others on the overall risk
1 |
df |
a dataframe |
VAR |
a character representing the name of a variable in DF |
RISK |
a character representing the name of a variable in DF |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.