-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathProj_1.Rmd
39 lines (26 loc) · 1.26 KB
/
Proj_1.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Project 1
by Sam Yao, Zine Brahmi
```{r}
library("tidyverse")
```
```{r}
library("ggplot2")
```
# COVID-19 Cases in Ohio Counties

## Retrieving the Data
Data was retrieved on February 10, 2023 for data that was collected on February 02, 2023, or 7 days earlier. The data was retrieved using this link, found on the Project 1 Starter given in class:
<https://console.cloud.google.com/marketplace/details/usafacts-public-data/covid19-us-cases?filter=solution-type:dataset&filter=category:covid19&id=3eaff9c5-fbaf-47bb-a441-89db1e1395ab&project=medical-app-c4671>
Here is the SQL query that was used to retrieve the data, also given in the Project 1 Starter from class:
``` sql
SELECT *
FROM `bigquery-public-data.covid19_usafacts.summary` covid19
JOIN `bigquery-public-data.census_bureau_acs.county_2020_5yr` acs
ON covid19.county_fips_code = acs.geo_id
WHERE date = DATE_SUB(CURRENT_DATE(), INTERVAL 9 day) and state="OH"
```
We may be interested in using this query as well on the same data source to get time series data:
``` sql
SELECT *
FROM `bigquery-public-data.covid19_usafacts.summary` covid19 WHERE state = "OH" AND county_name != "Statewide Unallocated"
```