Skip to contents

Measures the duration of a donor’s funding relationship relative to the maximum possible duration.

Usage

indicator_donor_relationship_duration(flows, donors = NULL, donor_name = NULL)

Arguments

flows

A dataframe containing sourceObjects and budgetYear.

donors

Optional dataframe with donor names.

donor_name

Optional donor name to highlight in the plot.

Value

A list with a tibble with donor and Relationship_Duration_Index and a plot.

Examples

result <- indicator_donor_relationship_duration(flows, donor_name = "Germany")
print(result$plot)