Skip to contents

Convenience wrapper that chains get_governance_data, get_features, and get_scores.

Usage

get_governance_scores(
  years,
  eins = NULL,
  source = NULL,
  cache = c("temporary", "retain"),
  path = "efdata",
  verbose = FALSE,
  ...
)

Arguments

years

Integer vector of tax years to import.

eins

Optional character vector of formatted EINs (EIN2, e.g. "EIN-43-2031361") to restrict the download to given organizations.

source

A panel990::data_source() configuration. Defaults to the NCCS efile v2.1 archive. Point root at a local directory to read already-downloaded tables.

cache

Passed to panel990::panelize(): "temporary" (default) uses a session temp directory; "retain" keeps a durable cache in path.

path

Cache directory used when cache = "retain".

verbose

Print panel990 progress messages.

...

Additional arguments passed to get_scores (for example missing or impute).

Value

The scored data frame returned by get_scores.

Examples

if (FALSE) { # \dontrun{
scores <- get_governance_scores(years = 2022)
} # }