Resolve full database table name for HTS
get_db_table_name.RdConstructs the full database table name for HTS tables, applying mapping, prefix, and version suffix as needed. Use to standardize table names for database queries and file I/O.
Arguments
- table
character(1). Logical or database table name (e.g., 'household', 'person', 'ex_hh').
- settings
list. Must include:
hts_table_map
- — optional mapping of logical to database table names
hts_tables_prefix
— optional prefix for standard HTS tables hts_rmove_version
— optional version suffix for rMove tables Additional settings as needed for table naming.
Details
Checks for a table mapping in
settings$hts_table_map; returns mapped name if found.For standard HTS tables, applies prefix from
settings$hts_tables_prefixif present.Appends version suffix from
settings$hts_rmove_versionif present.Returns the original table name for non-standard tables.
Returns a character string suitable for database queries or file paths.
Settings
hts_table_map (direct): Table name mapping. Default from settings.
hts_tables_prefix (direct): Table prefix. Default from settings.
hts_rmove_version (direct): Version suffix. Default from settings.
See also
fetch_hts_table
Other io utilities:
clean_data_dict(),
cut_and_label(),
db_table_has_geometry(),
fetch_acs(),
fetch_all_hts_tables(),
fetch_from_db(),
fetch_hts_table(),
fetch_pums(),
fetch_study_region(),
find_project_root(),
fix_value_labels_on_load(),
print_params(),
pums_checksum(),
read_from_db(),
read_pums_codebook(),
record_checksum(),
sampled_latlon_to_bg()