transpose_tibble: Transpose a tibble.

Description Usage Arguments

View source: R/convert_tibbles.R

Description

Transpose tibble, adding a new column to store the old column names and drawing new column names from a given column. Currently doesn't have type checking so new types have to be assigned to columns manually if there is more than one type in the tibble.

Usage

1
transpose_tibble(tbl, col_names, id_col = "columns")

Arguments

tbl

Tibble to transpose.

col_names

Column containing the transposed column headers.

id_col

Name of the new column containing the old column headers.


allydunham/tblhelpr documentation built on Nov. 20, 2019, 7:35 a.m.