R package for creating a nonprofit governance index score using 990 efile data.
devtools::install_github( 'nonprofit-open-data-collective/governance' )We assume the user already has the relevant 990 Efile data downloaded. See Downlaoding Data Vignette for instructions on downloading the need 990 efile data.
We will use a subset of a test set that was already created. See data-raw/01-get-example-data.Rhere for details on how this data set was created.
data("dat_example", package = "governance")
set.seed(57)
keep_rows <- sample(1:nrow(dat_example), 200)
dat_example <- dat_example[keep_rows, ]
Use the get_features() function to clean the data and transform it into a features matrix.
features_example <- get_features(dat_example)Use the get_scores() function to get the governance scores.
scores_example <- get_scores(features_example)- Beck, O., & Lecy, J. (2024). Nonprofit governance Package for R. Zenodo. https://doi.org/10.5281/zenodo.10781066