Skip to content

Releases: healthyregions/oepsData

v0.1.0

10 Dec 21:12
Compare
Choose a tag to compare

Initial Release

Description

This is the initial release of the oepsData R package. This package allows any researcher to easily load all of the data in our Opioid Environment Policy Scan (OEPS) data warehouse directly into their R environment. Full documentation for the package can be found at oepsdata.healthyregions.org.

Features

The package provides two primary functions:

  • load_oeps
    • loads data variables for any scale (state, county, tract, zcta) for any of the available time periods ("latest", 2010, 2000, 1990, 1980).
    • optionally include a geometry column (500k boundaries from US Census Cartographic Boundaries files) to enable mapping
  • load_oeps_dictionaries
    • loads data dictionaries to provide context and links to metadata for each variable.

And two secondary functions that may help with data wrangling:

  • state_to_fips
    • takes a given state's name or abbreviation and returns the state's FIPS code.
  • county_to_fips
    • takes a county's name and the FIPS of its state and returns the county level FIPS code.

OEPS Version: v2.0

This package loads data from the OEPS v2.0 release.

Credits

Authors: Ashlynn Wimer (@bucketteOfIvy), Adam Cox (@mradamcox)

Thanks to Casey Sarapas for early testing and feedback during development of this package.

License

CC BY 4.0