pivotEstimates {visOmopResults}R Documentation

Set estimates as columns

Description

[Experimental] 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()


[Package visOmopResults version 0.3.0 Index]