vector_transpose_longer: Transpose a vector to a long form
Description
Many vectors (indicators, multipliers) are create in the wide form to conform matrixes in
analytical functions. For printing it is more useful to have them in long form.
A long form vector with a key column, and optionally the identifier of the indicator in
the first column.
Arguments
data_table
A matrix or vector that normally has a key column.
names_to
Defaults to 'nace_r2'.
values_to
Defaults to 'value'.
key_column_name
The name of the first column. Defaults to NULL when it is not changed.
It should usually match the key column of the matrix or vector you would like to join the new
vector created with vector_transpose_longer.
.keep
Keep the indicator identifier column? Defaults to FALSE.
Details
This is a wrapper around pivot_longer so you do not necessarily need to
import or load the entire tidyr package.