spread_multi: Spread key-value pairs composed of multiple keys and values

Description Usage Arguments See Also

View source: R/tidyr-extensions.R

Description

spread_multi allows the use of the spread function from tidyr over multiple keys and values. Essentially, keys and values will be combined into one key and value, then separated in the final data frame as appropriate.

Usage

1
spread_multi(data, keys, values)

Arguments

data

A data frame

keys

One or more column names.

values

One or more column names.

See Also

spread


graggsd/sgcleanup documentation built on May 28, 2019, 8:53 p.m.