remove_sch.Rd
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)
this can be either a financial structured dataset or an MSD
you can choose to filter either the SCH list or the SGAC list; default is both
allows you keep full dataset, but identify the mechanisms that are supply chain, mech_sch as a logical; default = FALSE
a df without supply chain mechanisms
The list of SCH mechanisms is maintained by the EA team on a Google Sheet. A USAID email is required to access the dataset.
[set_email()] to store USAID email; [load_secrets()] to load credentials into session
if (FALSE) {
#authenticate
load_secrets()
#remove SCh using SGAC list
df <- remove_shc(df, poc = "SGAC") }