splitGroup: Split group_name and group_level columns

View source: R/split.R

splitGroupR Documentation

Split group_name and group_level columns

Description

Pivots the input dataframe so the values of the column group_name are transformed into columns that contain values from the group_level column.

Usage

splitGroup(result, keep = FALSE, fill = "overall")

Arguments

result

A dataframe with at least the columns group_name and group_level.

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.

Value

A dataframe.

Examples

mockSummarisedResult() |>
  splitGroup()


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