View source: R/fiscaldata_data.R
| get_source_data_fiscaldata | R Documentation |
Retrieve A U.S. Treasury Fiscal Data Table
get_source_data_fiscaldata(
dataset_id,
endpoint,
date_col = "record_date",
key_cols = date_col,
fields = NULL,
from = NULL,
to = NULL,
page_size = 10000L,
max_pages = Inf
)
dataset_id |
Stable local dataset identifier. |
endpoint |
Fiscal Data endpoint relative to the fiscal-service base URL. |
date_col |
Source date column. |
key_cols |
Source columns that uniquely identify observations per date. |
fields |
Optional source fields to request. |
from, to |
Optional inclusive date bounds. |
page_size |
Number of source rows requested per page. |
max_pages |
Optional page limit for diagnostics. |
A typed, table-shaped data.table with source and dataset identity.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.