Skip to contents

Functions to retrieve detailed information about specific treasury accounts including object classes and program activities.

Usage

agency_treasury_account_object_class(treasury_account_symbol, ...)

agency_treasury_account_program_activity(treasury_account_symbol, ...)

Arguments

treasury_account_symbol

A character string representing the Treasury Account Symbol (TAS) in the format "XXX-X-XXXX-XXX"

...

Additional parameters passed to specific API endpoints. Common options include:

  • page: Integer specifying the page number to retrieve (default: 1)

  • limit: Integer specifying number of records per page (default: 10)

  • sort: Field to sort results by (varies by endpoint)

  • order: Sort direction: "asc" or "desc" (default varies by endpoint)

Value

Each function returns a tibble with different structures:

  • agency_treasury_account_object_class() returns:

    • treasury_account_symbol: TAS code

    • fiscal_year: Fiscal year

    • results: List of object classes with financial data

  • agency_treasury_account_program_activity() returns:

    • treasury_account_symbol: TAS code

    • fiscal_year: Fiscal year

    • results: List of program activities with financial data

Examples

if (FALSE) { # interactive()
# Get object classes for a treasury account
tas_objects <- agency_treasury_account_object_class("086-X-0302-000")

# Get program activities for a treasury account
tas_programs <- agency_treasury_account_program_activity("086-X-0302-000")
}