hospitals.Rd
Dataset was scraped by Masoud Nosrati from Official USA in Mar 2020, geocoding by Andrew Maloney through QGIS.
hospitals
A data frame with 145 rows and 15 variables:
name of the city
name of the hospital - XXX rename to NAME
type of hospital, one of 'critical access', 'general acute care', 'psychiatric', 'long term care', and 'military'
url if available
number of BEDS
North American Industry Classification System (NAICS) descriptor: 'general medical and surgical hospital' or 'specialty hospital'
145 0s XXX delete column?
145 OKs XXX delete column?
formatted addresses - some are duplicates - XXX look into
state abbreviation
zip code
geographic latitude
geographic longitude
column used to classify the data set
https://www.officialusa.com/stateguides/health/hospitals/iowa.html
# Map of hospitals in Iowa using ggplot2 library(ggplot2) library(dplyr) # for the pipe hospitals %>% ggplot() + geom_point(aes(x = longitude, y = latitude))# leaflet map library(leaflet) library(sf) hospitals %>% leaflet() %>% addTiles() %>% addPolygons(data = ia_counties, weight = 1, color="#333333") %>% addCircleMarkers(lng = ~longitude, lat = ~latitude, radius = 1, stroke = 0.1, label = ~name, clusterOptions = markerClusterOptions())