splitAll: Split all pairs name-level into columns.

View source: R/split.R

splitAllR Documentation

Split all pairs name-level into columns.

Description

Pivots the input dataframe so any pair name-level columns are transformed into columns (name) that contain values from the corresponding level.

Usage

splitAll(result, keep = FALSE, fill = "overall", exclude = "variable")

Arguments

result

A data.frame.

keep

Whether to keep the original name-level columns.

fill

A character that specifies what value should be filled in when missing.

exclude

Name of a column pair to exclude.

Value

A dataframe with group, strata and additional as columns.

Examples

mockSummarisedResult() |>
  splitAll()


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