Skip to contents

This function returns a data frame about diet and exercise risk from State Cancer Profiles.

Usage

risk_diet_exercise(diet_exercise, race, sex)

Arguments

diet_exercise

One of the following values:

  • "bmi is healthy, ages 20+"

  • "bmi is obese, ages 20+"

  • "bmi is obese, high school survey"

  • "bmi is overweight, high school survey"

  • "consumed 1 or more fruits per day"

  • "consumed 1 or more vegetables per day"

  • "no leisure time physical activity".

race

One of the following values:

  • "All Races (includes Hispanic)"

  • "White (non-Hispanic)"

  • "Black (non-Hispanic)"

  • "American Indian / Alaska Native (non-Hispanic)"

  • "Asian / Pacific Islander (non-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, Lower 95% CI, Upper 95% CI, Number of Respondents.

Examples

if (FALSE) {
risk_diet_exercise(
  diet_exercise = "bmi is healthy, ages 20+",
  race = "all races (includes hispanic)",
  sex = "both sexes"
)
risk_diet_exercise(
  diet_exercise = "bmi is obese, high school survey",
  race = "all races (includes hispanic)",
  sex = "males"
)
}