@@ -181,15 +181,10 @@ source3 <- left_join(
181
181
by = c(" Signal" = " signal" , " data_source" )
182
182
)
183
183
184
- # Fill in Temporal Scope Start/End for quidel signals by coalescing the existing
185
- # column with the new data; quidel dates have already been filled in manually in
186
- # the spreadsheet.
187
- source3 $ min_time <- case_when(
188
- source3 $ data_source == " quidel" ~ coalesce(source3 $ min_time , source3 $ `Temporal Scope Start` )
189
- )
190
- source3 $ max_time <- case_when(
191
- source3 $ data_source == " quidel" ~ coalesce(source3 $ max_time , source3 $ `Temporal Scope Start` )
192
- )
184
+ # Assume new values for Temporal Scope Start/End are correct, but use previous
185
+ # (manual) values as backup.
186
+ source3 $ min_time <- coalesce(source3 $ min_time , source3 $ `Temporal Scope Start` )
187
+ source3 $ max_time <- coalesce(source3 $ max_time , source3 $ `Temporal Scope End` )
193
188
194
189
# Select relevant columns
195
190
# first reformat max_time col to character for compatibility
@@ -566,7 +561,7 @@ source_updated <- left_join(
566
561
source_updated , leftover_signal_geos_manual ,
567
562
by = c(" Signal" = " signal" , " data_source" )
568
563
) %> %
569
- mutate(`Delphi-Aggregated Geography` = coalesce( geos_list , `Delphi-Aggregated Geography` ) ) %> %
564
+ mutate(`Delphi-Aggregated Geography` = geos_list ) %> %
570
565
select(- geos_list )
571
566
572
567
0 commit comments