Skip to contents

Calculates the fraction of years a donor funds a destination out of all years they have any funding relationship. Higher values indicate sustained, long-term donor engagement.

Usage

indicator_donor_destination_stability(flows, donor_dest_df = NULL)

Arguments

flows

A dataframe with sourceObjects, destinationObjects, budgetYear, and amountUSD.

donor_dest_df

Optional tibble of donor–destination pairs to merge with.

Value

A list with a tibble with donor, destination, and DonorDestination_Stability_Index and a plot.

Examples

result <- indicator_donor_destination_stability(flows)
print(result$plot)