From 2b5e80e585437962fcda09e70937b84f1bfc0690 Mon Sep 17 00:00:00 2001 From: Evan Ray Date: Thu, 26 Dec 2024 13:34:47 -0500 Subject: [PATCH] Update snapshot-nhsn-data.yml --- .github/workflows/snapshot-nhsn-data.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/snapshot-nhsn-data.yml b/.github/workflows/snapshot-nhsn-data.yml index 7320817..cd739fc 100644 --- a/.github/workflows/snapshot-nhsn-data.yml +++ b/.github/workflows/snapshot-nhsn-data.yml @@ -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: