Function to compute the weights of each flag based on the history
1 | computeFlagWeight(history, officialFlag = "", method = "entropy")
|
history |
The history of data queried from the api |
officialFlag |
The character string representing official figure. |
method |
The method to be used to calculate the weights. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.