Skip to contents

Fetch multiple years of NJ school finance

Usage

fetch_finance_multi(
  end_year_vector = NULL,
  end_years = NULL,
  tidy = TRUE,
  use_cache = TRUE,
  with_status = FALSE,
  level = "all",
  allow_partial = FALSE
)

Arguments

end_year_vector

vector of school years (end of the academic year). See get_available_finance_years for valid values.

end_years

alias for end_year_vector, used by cross-state discovery tooling.

tidy

logical, default TRUE. See fetch_finance.

use_cache

logical, default TRUE. See fetch_finance.

with_status

logical, default FALSE. See fetch_finance.

level

entity grain to return. See fetch_finance.

allow_partial

logical. See fetch_finance. The returned object records every requested year/component in get_source_results().

Value

A single tibble, the per-year results of fetch_finance stacked.

Examples

if (FALSE) { # \dontrun{
library(dplyr)

# Statewide per-pupil total over time
fetch_finance_multi(2018:2024) %>%
  filter(is_state, metric == "per_pupil_total") %>%
  select(end_year, value)
} # }