Skip to content

Commit c042e1d

Browse files
committed
Fix a missing dplyr::
Avoid mixups with `stats::lag`, both for humans and for R (we don't have `@importFrom dplyr lag` right now).
1 parent 7c4d9b4 commit c042e1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/archive.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ epi_archive =
173173
# Checks to see if a value in a vector is LOCF
174174
is_locf <- function(vec) {
175175
dplyr::if_else(!is.na(vec) & !is.na(dplyr::lag(vec)),
176-
vec == lag(vec),
176+
vec == dplyr::lag(vec),
177177
is.na(vec) & is.na(dplyr::lag(vec)))
178178
}
179179

0 commit comments

Comments
 (0)