When working with financial data, its often useful to remove Supply Chain mechanism and funding from the data.

remove_sch(df, poc = c("SCH", "SGAC"), flag_only = FALSE)

Arguments

df

this can be either a financial structured dataset or an MSD

poc

you can choose to filter either the SCH list or the SGAC list; default is both

flag_only

allows you keep full dataset, but identify the mechanisms that are supply chain, mech_sch as a logical; default = FALSE

Value

a df without supply chain mechanisms

Details

The list of SCH mechanisms is maintained by the EA team on a Google Sheet. A USAID email is required to access the dataset.

See also

[set_email()] to store USAID email; [load_secrets()] to load credentials into session

Examples

if (FALSE) { # \dontrun{
#authenticate
load_secrets()
#remove SCh using SGAC list
df <- remove_shc(df, poc = "SGAC") } # }