splitAll {visOmopResults}R Documentation

Split group, strata and additional at once.

Description

Pivots the input dataframe so group, strata and additional name columns are transformed into columns that contain values from the corresponding level columns (group, strata, and additional).

Usage

splitAll(
  result,
  keep = FALSE,
  fill = "overall",
  overall = lifecycle::deprecated()
)

Arguments

result

A summarised_result object.

keep

Whether to keep the original group_name and group_level columns.

fill

Optionally, a character that specifies what value should be filled in with when missing.

overall

deprecated.

Value

A dataframe with group, strata and additional name as columns.

Examples

mockSummarisedResult() |>
  splitAll()


[Package visOmopResults version 0.3.0 Index]