addSettings: Add settings columns to a <summarised_result> object

View source: R/addSettings.R

addSettingsR Documentation

Add settings columns to a ⁠<summarised_result>⁠ object

Description

Add settings columns to a ⁠<summarised_result>⁠ object

Usage

addSettings(
  result,
  settingsColumns = colnames(settings(result)),
  columns = lifecycle::deprecated()
)

Arguments

result

A ⁠<summarised_result>⁠ object.

settingsColumns

Settings to be added as columns, by default all settings will be added. If NULL or empty character vector, no settings will be added.

columns

[Deprecated]

Value

A ⁠<summarised_result>⁠ object with the added setting columns.

Examples

library(visOmopResults)
mockSummarisedResult() |>
  addSettings(settingsColumns = c("result_type"))


visOmopResults documentation built on Sept. 24, 2024, 1:08 a.m.