This function calculates the allele frequencies for each census tract across all states in the country.
It aggregates data from individual states and combines it into a unified result.
Usage
calculate_country_census_tract_allele_frequencies(query_allele)
Arguments
- query_allele
A character string representing the allele for which frequencies are to be calculated.
Value
A list containing the following elements:
us_population_race_code_percentages_by_tract
: A data frame with the allele frequencies for each census tract across all states.
sf_tract_data_for_all_states
: A data frame with spatial and additional data for each census tract across all states.
Examples
if (FALSE) { # \dontrun{
calculate_country_census_tract_allele_frequencies("A*11:01")
} # }