(v1.4.0.9025) is_new_episode()

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2020-11-23 21:50:27 +01:00
1 parent 363218da7e
commit b045b571a6
29 files changed
+706 -366

No files matched your search

-6
View File
@@ -204,11 +204,5 @@ test_that("first isolates work", {
expect_true(all(example_isolates %pm>%
pm_distinct(mo, .keep_all = TRUE) %pm>%
first_isolate() == TRUE))
library(dplyr)
# is_new_episode
old <- example_isolates %>% mutate(out = first_isolate(., include_unknown = TRUE))
new <- example_isolates %>% group_by(mo) %>% mutate(out = is_new_episode())
expect_identical(which(old$out), which(new$out))
})