Skip to contents

Loads all Household Travel Survey (HTS) tables listed in settings from POPS or local cache, applying geoid padding for consistency. Use to prepare HTS tables for analysis.

Usage

fetch_all_hts_tables(hts_tables = NULL)

Arguments

hts_tables

character vector (optional). Table names to fetch. Default: all in settings$hts_tables.

Value

named list of data.tables. Each table's columns depend on source table definition.

Details

  • Loads from local cache if available; otherwise fetches from POPS database.

  • Applies geoid_pad to all loaded tables for standardized geographic IDs.

  • Returns a named list of data.tables.

Settings

  • hts_tables (direct): Table names to fetch. Default from settings.

Examples

## Not run:
fetch_all_hts_tables()
#> Error in fetch_all_hts_tables(): object 'settings' not found
## End(Not run)