remove_sch: Remove Supply Chain Funding

View source: R/remove_sch.R

remove_schR Documentation

Remove Supply Chain Funding

Description

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

Usage

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

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.

Value

a df without supply chain mechanisms

See Also

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

Examples

## Not run: 
#authenticate
load_secrets()
#remove SCh using SGAC list
df <- remove_shc(df, poc = "SGAC") 
## End(Not run)

USAID-OHA-SI/gophr documentation built on Nov. 14, 2024, 8:30 p.m.