calculate_overall_score: Calculate the Overall SOM Score

View source: R/calculate_overall_score.R

calculate_overall_scoreR Documentation

Calculate the Overall SOM Score

Description

Calculate the overall score for all units in a Squadron of Merit Listing.

Usage

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)
)

Arguments

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.

Details

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.

Value

A data.table containing unit charter number, the component scores, and the overall score.


cap-nhq-analytics/sqdn-of-merit-calculator documentation built on April 14, 2022, 12:40 a.m.