library(tidyverse)
## ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
## ✔ dplyr 1.1.4 ✔ readr 2.1.5
## ✔ forcats 1.0.0 ✔ stringr 1.5.1
## ✔ ggplot2 3.5.1 ✔ tibble 3.2.1
## ✔ lubridate 1.9.4 ✔ tidyr 1.3.1
## ✔ purrr 1.0.4
## ── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
## ✖ dplyr::filter() masks stats::filter()
## ✖ dplyr::lag() masks stats::lag()
## ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors
library(readxl)
Applied_QM<-read_excel("Applied QM.xlsx")
summary(Applied_QM$year)
## Min. 1st Qu. Median Mean 3rd Qu. Max.
## 2018 2019 2020 2020 2022 2023
hist(Applied_QM$year)

plot(Applied_QM$year,Applied_QM$`Total Homelessness`)

cor(Applied_QM$year,Applied_QM$`Total Homelessness`)
## [1] 0.4186023