pivot_longer.trackr_df {dtrackr}R Documentation

Reshaping data using tidyr::pivot_longer

Description

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

Usage

## S3 method for class 'trackr_df'
pivot_longer(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 result of the tidyr::pivot_longer but with a history graph updated.

See Also

tidyr::pivot_longer()


[Package dtrackr version 0.4.4 Index]