Skip to content

Commit 82338db

Browse files
committed
Updated shifts for correlation testing.
1 parent 474c8a5 commit 82338db

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/testthat/test-correlation.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ test_that("epi_cor functions as intended",{
2828
})
2929

3030
test_that("shift works as intended",{
31-
expect_identical(shift(1:100,1),dplyr::lead(1:100))
32-
expect_identical(shift(1:100,0),1:100)
33-
expect_identical(shift(1:100,-1),dplyr::lag(1:100))
31+
expect_identical(epiprocess:::shift(1:100,1),dplyr::lead(1:100))
32+
expect_identical(epiprocess:::shift(1:100,0),1:100)
33+
expect_identical(epiprocess:::shift(1:100,-1),dplyr::lag(1:100))
3434
})

0 commit comments

Comments
 (0)