`adorn_achievement` calculate target achievement (cumulative and/or quarterly) for a standard MSD or one reshaped using `reshape_msd`()` as well as to apply achievement group labels and colors. It will run `calc_achievement` if an achievement column does not exist in the dataset.

adorn_achievement(df, qtr = NULL, classic = FALSE)

Arguments

df

data frame as standrd MSD or one from reshape_msd()

qtr

if using standard MSD, need to provide the most recent quarter, ideally using identifypd(df_msd, pd_type = "quarter")

classic

use the original OHA achievement color palette (pre July 2024), default = FALSE

Value

data frame with achievement values, labels, and colors

See also

Other achievement: calc_achievement()

Examples