wider: pivoting

Description Usage Arguments Value

View source: R/pivoting.R

Description

My own twist on tidyr::pivot_longer and tidyr::pivot_wider, just for convenience

Usage

1
wider(data, names_from, values_from, ...)

Arguments

data

A data frame to pivot.

names_from

<tidy-select> A pair of arguments describing which column (or columns) to get the name of the output column (names_from), and which column (or columns) to get the cell values from (values_from).

If values_from contains multiple values, the value will be added to the front of the output column.

values_from

<tidy-select> A pair of arguments describing which column (or columns) to get the name of the output column (names_from), and which column (or columns) to get the cell values from (values_from).

If values_from contains multiple values, the value will be added to the front of the output column.

...

Additional arguments passed on to methods.

Value

data frame


tjebo/tjebtools documentation built on Nov. 15, 2021, 11:21 p.m.