Skip to contents

Calculates the proportion of donors who provided funding to a destination in consecutive years (repeat donors). Goal: Measures the proportion of donors who continue funding a destination year after year.

Usage

indicator_destination_donor_retention(flows, destinations_df = NULL)

Arguments

flows

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

destinations_df

(optional) A dataframe of destinations to merge results with.

Value

A list with a tibble with destination and Destination_Donor_Retention_Index and a plot.

Examples

result <- indicator_destination_donor_retention(flows)
print(result$plot)
#> `stat_bin()` using `bins = 30`. Pick better value `binwidth`.