Learn R Programming

birdie (version 0.7.1)

p_r_natl: National Racial Demographics

Description

Returns the proportion of the U.S. population in six racial groups in a given year. Group definitions necessarily follow those used by the Census Bureau in its surname tables:

  • white: Non-Hispanic White alone

  • black: Non-Hispanic Black alone

  • hisp: Hispanic, any race

  • asian: Non-Hispanic Asian, Native Hawaiian, or Pacific Islander alone

  • aian: Non-Hispanic American Indian/Alaska Native

  • other: Non-Hispanic, two or more races, or other race

Usage

p_r_natl(year = 2021, vap = FALSE)

Value

A named numeric vector of length 6.

Arguments

year

The year to return demographics for.

vap

If TRUE, return statistics for the voting-age population (18+) rather than the full U.S. population.

Examples

Run this code
p_r_natl(year=2010)

Run the code above in your browser using DataLab