Skip to content

Commit

Permalink
drop tz from week ending date
Browse files Browse the repository at this point in the history
  • Loading branch information
elray1 committed Dec 16, 2024
1 parent d033367 commit b5c0a62
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/snapshot-nhsn-data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
- name: Snapshot NHSN data
run: Rscript -e "nhsn_data <- RSocrata::read.socrata('https://data.cdc.gov/resource/mpgq-jmmr.csv');
nhsn_data <- nhsn_data[c("jurisdiction", "weekendingdate", "totalconfflunewadm", "totalconfc19newadm")];
nhsn_data$weekendingdate <- substr(nhsn_data$weekendingdate, 1, 10);
colnames(nhsn_data) <- c("Geographic aggregation", "Week Ending Date", "Total Influenza Admissions", "Total COVID-19 Admissions");
write.csv(nhsn_data, file = '$FILE_NAME', row.names = FALSE)"
env:
Expand Down

0 comments on commit b5c0a62

Please sign in to comment.