Learn R Programming

visOmopResults (version 0.4.0)

splitAdditional: Split additional_name and additional_level columns

Description

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

Usage

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

Value

A dataframe.

Arguments

result

A dataframe with at least the columns additional_name and additional_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.

Examples

Run this code
mockSummarisedResult() |>
  splitAdditional()

Run the code above in your browser using DataLab