View source: R/calculate_overall_score.R
calculate_overall_score | R Documentation |
Calculate the overall score for all units in a Squadron of Merit Listing.
calculate_overall_score( som_report_path, score_weights = c(strength = 1, growth = 1, achv = 1, enc = 1, flight = 1), growth_focus_area = "balanced", achv_award_weights = c(1, 2, 2, 3, 3) )
som_report_path |
A path to the Squadron of Merit Listing report in CSV format. |
score_weights |
Weights for the five component scores. |
growth_focus_area |
The focus area for growth scoring, which defaults to "balanced". |
achv_award_weights |
Weights for the major cadet awards, from Wright Brothers to Spaatz. |
Each of the component scores are calculated and a total score is obtained by weighting these
scores equally. If you want to change the weights, pass a named vector to score_weights
.
You can pass a different growth focus area through using growth_focus_area
. Similarly, you can
pass a different set of award weights to the achievement score using achv_award_weights
.
A data.table containing unit charter number, the component scores, and the overall score.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.