Skip to contents

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

Usage

demo_crowding(area, areatype, crowding, race)

Arguments

area

A state/territory abbreviation or USA.

areatype

One of the following values:

  • "county"

  • "hsa" (Health Service Area)

  • "state".

crowding

The only permissible value is "household with >1 person per room".

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, Area Code, Percent, Households, Rank.

Examples

if (FALSE) {
demo_crowding(
  area = "WA",
  areatype = "county",
  crowding = "household with >1 person per room",
  race = "All Races (includes Hispanic)"
)

demo_crowding(
  area = "usa",
  areatype = "state",
  crowding = "household with >1 person per room",
  race = "All Races (includes Hispanic)"
)

demo_crowding(
  area = "pr",
  areatype = "hsa",
  crowding = "household with >1 person per room",
  race = "black"
)
}