filterGroup | R Documentation |
Filter the group_name-group_level pair in a summarised_result
filterGroup(result, ...)
result |
A |
... |
Expressions that return a logical value ( |
A <summarised_result>
object with only the rows that fulfill the
required specified group.
library(dplyr)
library(omopgenerics)
x <- tibble(
"result_id" = 1L,
"cdm_name" = "eunomia",
"group_name" = c("cohort_name", "age_group &&& cohort_name", "age_group"),
"group_level" = c("my_cohort", ">40 &&& second_cohort", "<40"),
"strata_name" = "sex",
"strata_level" = "Female",
"variable_name" = "number subjects",
"variable_level" = NA_character_,
"estimate_name" = "count",
"estimate_type" = "integer",
"estimate_value" = c("100", "44", "14"),
"additional_name" = "overall",
"additional_level" = "overall"
) |>
newSummarisedResult()
x |>
filterGroup(cohort_name == "second_cohort")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.