Skip to contents

This function returns a data frame about income demographics from State Cancer Profiles.

Usage

demo_income(area, areatype, income, race)

Arguments

area

A state/territory abbreviation or USA.

areatype

Either "county" or "state".

income

Either "median family income" or "median household income".

race

One of the following values:

  • "All Races (includes Hispanic)"

  • "White (includes Hispanic)"

  • "White non-Hispanic"

  • "Black"

  • "Amer. Indian/Alaskan Native (includes Hispanic)"

  • "Asian or Pacific Islander (includes Hispanic)"

  • "Hispanic (Any Race).

Value

A data frame with the following columns: Area Type, Area Code, Dollars, Rank.

Examples

if (FALSE) {
demo_income(
  area = "wa",
  areatype = "county",
  income = "median household income",
  race = "all races (includes hispanic)"
)

demo_income(
  area = "usa",
  areatype = "state",
  income = "median family income",
  race = "all races (includes hispanic)"
)

demo_income(
  area = "pr",
  areatype = "county",
  income = "median family income",
  race = "all races (includes hispanic)"
)
}