A drop in replacement for tidyr::pivot_wider() which optionally takes a message and headline to store in the history graph.

# S3 method for trackr_df
pivot_wider(data, ..., .messages = "", .headline = "", .tag = NULL)

Arguments

data

A data frame to pivot.

...

Additional arguments passed on to methods.

.messages

a set of glue specs. The glue code can use any global variable, grouping variable, or {.strata}. Defaults to nothing.

.headline

a headline glue spec. The glue code can use any global variable, grouping variable, or {.strata}. Defaults to nothing.

.tag

if you want the summary data from this step in the future then give it a name with .tag.

Value

the data dataframe result of the tidyr::pivot_wider function but with a history graph updated with a .message if requested.

See also

tidyr::pivot_wider()