addSettings | R Documentation |
<summarised_result>
objectAdd settings columns to a <summarised_result>
object
addSettings(result, settingsColumn = settingsColumns(result))
result |
A |
settingsColumn |
Settings to be added as columns, by default
|
A <summarised_result>
object with the added setting columns.
{
library(dplyr)
library(omopgenerics)
x <- tibble(
"result_id" = as.integer(c(1, 2)),
"cdm_name" = c("cprd", "eunomia"),
"group_name" = "cohort_name",
"group_level" = "my_cohort",
"strata_name" = "sex",
"strata_level" = "male",
"variable_name" = "Age group",
"variable_level" = "10 to 50",
"estimate_name" = "count",
"estimate_type" = "numeric",
"estimate_value" = "5",
"additional_name" = "overall",
"additional_level" = "overall"
) |>
newSummarisedResult(settings = tibble(
"result_id" = c(1, 2), "custom" = c("A", "B")
))
x
x |> addSettings()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.