Skip to contents

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

Usage

demo_mobility(area, areatype, mobility)

Arguments

area

A state/territory abbreviation or USA.

areatype

One of the following values:

  • "county"

  • "hsa" (Health Service Area)

  • "state".

mobility

The only permissible values are

  • "i haven't moved (in past year)"

  • "moved from outside us (in past year)"

  • "moved, different state (in past year)"

  • "moved, different county, same state (in past year)"

  • "moved, same county (in past year)".

Value

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

Examples

if (FALSE) {
demo_mobility(
  area = "WA",
  areatype = "county",
  mobility = "moved, different county, same state (in past year)"
)

demo_mobility(
  area = "usa",
  areatype = "state",
  mobility = "moved, same county (in past year)"
)

demo_mobility(
  area = "dc",
  areatype = "hsa",
  mobility = "moved, same county (in past year)"
)
}