Skip to contents

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

Usage

demo_food(area, areatype, food, race = NULL)

Arguments

area

A state/territory abbreviation or USA.

areatype

Either "county" or "state".

food

One of the following values:

  • "food insecurity"

  • "limited access to healthy food".

race

One of the following values:

  • "All Races (includes Hispanic)"

  • "White non-Hispanic"

  • "Black (includes Hispanic)"

  • "Hispanic (Any Race).

Value

A data frame with the following columns: Area Type, Area Code, Value, People.

Examples

if (FALSE) {
demo_food(
  area = "wa",
  areatype = "county",
  food = "food insecurity",
  race = "black"
)

demo_food(
  area = "usa",
  areatype = "state",
  food = "limited access to healthy food"
)

demo_food(
  area = "pr",
  areatype = "county",
  food = "food insecurity",
  race = "all races (includes hispanic)"
)
}