Skip to contents

Fiscal convenience wrapper around panel990::panelize(), optionally attaching the current geocoded BMF master.

Usage

get_panel(
  years,
  tables = c("P00", "P01", "P08", "P09", "P10", "P11", "P12", "A01"),
  include_bmf = TRUE,
  efile_root = "https://nccs-efile.s3.us-east-1.amazonaws.com/public/efile_v2_1/",
  bmf_url = .BMF_URL,
  timeout = 300,
  retry_max = 3L,
  verbose = TRUE,
  backend = "memory",
  path = "efdata",
  cache = "retain",
  filters = NULL,
  columns = NULL,
  include_many = FALSE,
  collision = "error",
  overwrite = FALSE
)

Arguments

years

Tax years.

tables

Aliases or literal table names.

include_bmf

Attach BMF fields.

efile_root

Efile URL or local fixture directory.

bmf_url

BMF URL, local path, or in-memory data frame.

timeout

Download timeout.

retry_max

Download attempts.

verbose

Print progress.

backend

Retrieval backend; "memory" or "duckdb".

path

Retained CSV cache directory.

cache

"retain" or "temporary".

filters

Optional named source filters.

columns

Optional fields to retain.

include_many

Join one-to-many and supplemental tables.

collision

Non-key collision policy.

overwrite

Replace cached CSVs.

Value

A data frame with retrieval manifests attached as attributes.