pivotEstimates: Set estimates as columns

View source: R/pivotEstimates.R

pivotEstimatesR Documentation

Set estimates as columns

Description

Pivot the estimates as new columns in result table.

Usage

pivotEstimates(result, pivotEstimatesBy = "estimate_name", nameStyle = NULL)

Arguments

result

A ⁠<summarised_result>⁠.

pivotEstimatesBy

Names from which pivot wider the estimate values. If NULL the table will not be pivotted.

nameStyle

Name style (glue package specifications) to customise names when pivotting estimates. If NULL standard tidyr::pivot_wider formatting will be used.

Value

A tibble.

Examples

result <- mockSummarisedResult()
result |> pivotEstimates()


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