Skip to contents

Compatibility wrapper around panel990::panelize(). It returns a data frame and attaches structured download, table, join, and BMF diagnostics.

Usage

retrieve_efile_data(
  year,
  tables = c("P00", "P01", "P08", "P09", "P10"),
  include_bmf = TRUE,
  bmf_vars = .BMF_VARS,
  join_1xm = FALSE,
  efile_root = "https://nccs-efile.s3.us-east-1.amazonaws.com/public/efile_v2_1/",
  bmf_url = .BMF_URL,
  timeout = 300,
  retry_max = 3L,
  path = "efdata",
  keep_files = TRUE,
  verbose = TRUE,
  backend = "memory",
  cache = NULL,
  filters = NULL,
  columns = NULL,
  collision = "error",
  overwrite = FALSE
)

Arguments

year

One tax year.

tables

Aliases or literal canonical table names.

include_bmf

Attach current geocoded BMF fields.

bmf_vars

Native BMF fields to retain; NULL retains all available.

join_1xm

Join one-to-many and supplemental tables.

efile_root

Efile URL or local source directory.

bmf_url

BMF URL, path, or data frame.

timeout

Download timeout.

retry_max

Download attempts.

path

Retained CSV cache directory.

keep_files

Retain downloaded CSVs. When false, use a temporary cache.

verbose

Print progress.

backend

"memory" or "duckdb".

cache

Optional explicit cache mode: "retain", "temporary", or "none". By default it is derived from keep_files.

filters

Optional named source filters.

columns

Optional source fields to retain.

collision

Non-key collision policy.

overwrite

Replace cached files.

Value

A data frame with structured retrieval attributes.