Skip to content

Commit

Permalink
Update snapshot-nhsn-data.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
elray1 authored Dec 26, 2024
1 parent 466f3f0 commit 2b5e80e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/snapshot-nhsn-data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +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);
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 2b5e80e

Please sign in to comment.