sud: Location of Licensed Substance Use Disorder/Problem Gambling...

sudR Documentation

Location of Licensed Substance Use Disorder/Problem Gambling Programs in Iowa

Description

Dataset was scraped by Masoud Nosrati from the Iowa Department of Public Health Development in Mar 2020, geocoding by Andrew Maloney through QGIS.

Usage

sud

Format

A data frame with 123 rows and 15 variables:

name

name of the facility

phone

phone number

street

street address

city

city

statename

name of state

zip

5-digit zip code

result_num

0s XXX delete column?

status

OKs XXX delete column?

address

formatted addresses - some are duplicates - XXX look into

latitude

geographic latitude

longitude

geographic longitude

state

state abbreviation

classification

column used to classify the dataset

Source

https://idph.iowa.gov/Portals/1/userfiles/166/Licensure/All%20Licensed%20Substance%20Use%20Disorder%20-%20Problem%20Gambling%20Program%27s%20List.pdf

Examples

# Map of centers in Iowa  using ggplot2
library(ggplot2)
library(dplyr) # for the pipe

sud %>%
  ggplot() +
    geom_point(aes(x = longitude, y = latitude))

# leaflet map
library(leaflet)
library(sf)

sud %>%
  group_by(name,address, phone) %>%
  mutate(
    hovertext = htmltools::HTML(paste0(name, "<br>",address, '<br>', phone))
  ) %>%
  leaflet() %>%
    addTiles() %>%
    addPolygons(data = ia_counties,
                weight = 1, color="#333333") %>%
    addCircleMarkers(lng = ~longitude, lat = ~latitude,
                     radius = 1, stroke = 0.1,
                     label = ~hovertext)

DSPG-ISU/DSPG documentation built on Feb. 19, 2024, 9:36 p.m.