Skip to contents

This function retrieves the 2020 Census county codes for a specified state using its state abbreviation. It fetches the state information, constructs the appropriate URL for the county codes file, and processes the data.

Usage

query_county_info_by_state(query_state_abbreviation)

Arguments

query_state_abbreviation

A character string representing the two-letter state abbreviation (e.g., "TX" for Texas).

Value

A data frame containing county codes and related information for the specified state.

Examples

# Query county codes for Texas
tx_codes <- query_county_info_by_state(query_state_abbreviation = "TX")