Skip to contents

Measures the stability of annual funding amounts for each recipient as 1 minus the coefficient of variation of annual totals.

Usage

indicator_recipient_amount_stability(flows, recipients = NULL)

Arguments

flows

A dataframe containing destinationObjects, budgetYear, and amountUSD.

recipients

Optional dataframe of recipient organizations to merge.

Value

A list with a tibble with columns recipient and Amount_Stability and a plot.

Examples

result <- indicator_recipient_amount_stability(flows)
print(result$plot)
#> `stat_bin()` using `bins = 30`. Pick better value `binwidth`.
#> Warning: Removed 455 rows containing non-finite outside the scale range (`stat_bin()`).