We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d4d424 commit 87f71c8Copy full SHA for 87f71c8
R/04_aggregate_obs.R
@@ -189,7 +189,7 @@ obs_select_sec <- function(
189
190
# Now, we group by 'window_id' and select the row with the minimum difference to that target
191
mindif <- NULL
192
- df[, mindif := diff_to_target == min(diff_to_target), by = window_id]
+ dt[, mindif := diff_to_target == min(diff_to_target), by = window_id]
193
df <- dt[mindif == TRUE]
194
195
return(df)
0 commit comments