Skip to contents

This function returns a data frame from Workforce in State Cancer Profiles.

Usage

demo_workforce(area, areatype, workforce, race, sex)

Arguments

area

A state/territory abbreviation or USA.

areatype

One of the following values:

  • "county"

  • "hsa" (Health Service Area)

  • "state".

workforce

The only permissible value is "unemployed"

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).

sex

One of the following values:

  • "both sexes"

  • "male"

  • "female".

Value

A data frame with the following columns: Area Type, Area Code, Percent, People Unemployed, Rank.

Examples

if (FALSE) {
demo_workforce(
  area = "WA",
  areatype = "county",
  workforce = "unemployed",
  race = "all races (includes hispanic)",
  sex = "both sexes"
)

demo_workforce(
  area = "usa",
  areatype = "state",
  workforce = "unemployed",
  race = "all races (includes hispanic)",
  sex = "females"
)

demo_workforce(
  area = "pr",
  areatype = "hsa",
  workforce = "unemployed",
  race = "all races (includes hispanic)",
  sex = "both sexes"
)
}