splitAll: 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")
Value
A dataframe with group, strata and additional as columns.
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.
Examples
Run this codemockSummarisedResult() |>
splitAll()
Run the code above in your browser using DataLab