Nothing
test_that("getUniqueCombinationsSr", {
x <- dplyr::tibble(
cohort_name_reference = c("b", "y", "k"),
cohort_name_comparator = c("a", "x", "z")
) |>
visOmopResults::uniteGroup(
cols = c("cohort_name_reference", "cohort_name_comparator")
)
# expect no change
expect_identical(x, getUniqueCombinationsSr(x))
# expect pairs drop
x <- dplyr::tibble(
cohort_name_reference = c("b", "y", "a"),
cohort_name_comparator = c("a", "x", "b")
) |>
visOmopResults::uniteGroup(
cols = c("cohort_name_reference", "cohort_name_comparator")
)
expect_identical(
x |>
visOmopResults::filterGroup(.data$cohort_name_reference != "a"),
getUniqueCombinationsSr(x)
)
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.