View source: R/ustfd_endpoints.R
| ustfd_table_columns | R Documentation |
ustfd_table_columns returns the column dictionaries for the specified endpoint(s).
See ustfd_tables() for known endpoints.
ustfd_table_columns(endpoints = NULL)
endpoints |
one or more strings representing a valid endpoint |
The format of a dictionary is a tibble with one row for every table column and the following columns:
endpoint - the ID of the table this column belongs to
colum_name - the field name recognizable to the API interface
data_type - one of: "DATE", "STRING", "CURRENCY", "NUMBER",
"PERCENTAGE", "YEAR", "QUARTER", "MONTH", "DAY"
pretty_name - a descriptive label
definition - definition of the colmn's value
is_required - logical value
tibble
https://fiscaldata.treasury.gov/api-documentation/#fields-by-endpoint
Other ustfd_user:
endpoint_exists(),
ustfd_all_pages(),
ustfd_datasets(),
ustfd_query(),
ustfd_simple(),
ustfd_tables()
library(ustfd)
ustfd_table_columns(ustfd_tables(ustfd_datasets()$dataset[2])$endpoint)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.