View source: R/calculate_achv_score.R
calculate_achv_score | R Documentation |
Calculate the achievement score for all units in a Squadron of Merit Listing.
calculate_achv_score(som_report, award_weights = c(1, 2, 2, 3, 3))
som_report |
A data.table containing the Squadron of Merit Listing data. |
award_weights |
Weights for the five major awards, from Wright Brothers to Spaatz. |
By default, the achievement score awards 1 point for every Wright Brothers Award, 2 points for every Mitchell and Earhart Award, and 3 points for every Eaker and Spaatz Award.
You can pass an alternative vector of weights in to award_weights
if you want to change these
weightings.
The final result is then standardized using the distribution of the scores to have a mean of 1 and standard deviation of 1.
A data.table containing the unit charter number and the achievement score.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.