| filterResult | R Documentation |
<summarised_result> automaticallyFilter a <summarised_result> automatically
filterResult(result, ...)
result |
A |
... |
Expressions that return a logical value. The columns used in the
expressions can be stored in the settings, strata, group, or additional
columns. |
A <summarised_result> object with only the rows that satisfy the
specified filters.
library(dplyr)
library(omopgenerics)
x <- tibble(
"result_id" = 1L,
"cdm_name" = "eunomia",
"group_name" = "cohort_name",
"group_level" = "my_cohort",
"strata_name" = "sex",
"strata_level" = "Female",
"variable_name" = "number subjects",
"variable_level" = NA_character_,
"estimate_name" = "count",
"estimate_type" = "integer",
"estimate_value" = "100",
"additional_name" = "overall",
"additional_level" = "overall"
) |>
newSummarisedResult(settings = tibble(
"result_id" = 1L, "analysis" = "overall"
))
x |>
filterResult(cohort_name == "my_cohort", sex == "Female")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.