Skip to content

Latest commit

 

History

History
107 lines (70 loc) · 6.14 KB

readme.md

File metadata and controls

107 lines (70 loc) · 6.14 KB

Toronto Shelters

The data this week comes from Sharla Gelfand's opendatatoronto R package. The site website has additional details and all sorts of great datasets.

opendatatoronto package website. Quick intro/vignette can also be found here.

Data originally sourced from open.toronto.ca.

Article around Homeless Shelters in Toronto.

In his response to "where will homeless people go (when the respite closes)?" Ross tweeted:

"Other respites will also work to accommodate. As respites, typically, see their highest usage in the winter months, we anticipate an easing of demand for respites with the warmer weather. Will be keeping a close watch, of course."

A list of places to donate to in Toronto:

  • Foodbanks

  • Encampment Support Network Toronto - ESN is an ad-hoc, volunteer-run network of neighbours building community and supporting people living in encampments in 6 locations throughout Toronto. Every day since the beginning of June 2020, outreach volunteers from the network visit encampments to deliver basic supplies, such as water and tents, ice, sleeping bags, fire safety equipment, and snacks, which the City of Toronto has consistently refused to provide (despite recommendations from Ontario's Chief Coroner to do so).

  • Toronto Tiny Shelters - Khaleel Seivwright is a carpenter and raising money to build durable insulated tiny shelters for homeless people across Toronto who might be living outside this winter.

Shelters from Reddit post

Get the data here

# Get the Data

# Read in with tidytuesdayR package 
# Install from CRAN via: install.packages("tidytuesdayR")
# This loads the readme and all the datasets for the week of interest

# Either ISO-8601 date or year/week works!

tuesdata <- tidytuesdayR::tt_load('2020-12-01')
tuesdata <- tidytuesdayR::tt_load(2020, week = 49)

shelters <- tuesdata$shelters

# Or read in the data manually

shelters <- readr::read_csv('https://raw.githubusercontent.com/rfordatascience/tidytuesday/main/data/2020/2020-12-01/shelters.csv')

Data Dictionary

shelters.csv

variable class description
id integer .
occupancy_date character .
organization_name character .
shelter_name character .
shelter_address character .
shelter_city character .
shelter_province character .
shelter_postal_code character .
facility_name character .
program_name character .
sector character .
occupancy integer .
capacity integer .

Cleaning Script

library(opendatatoronto)
library(tidyverse)
library(lubridate)

packages <- list_packages(limit = 10)
packages$excerpt

all_data <- search_packages("Daily Shelter Occupancy") %>% 
  list_package_resources() %>% 
  slice(2,4,6) %>%
  group_split(name) %>% 
  map_dfr(get_resource)

all_data %>% 
  janitor::clean_names() %>% 
  write_csv("2020/2020-12-01/shelters.csv")