A simple implementation of to pivot_longer of tidyr
.fonte(df, names_to, values_to)
The data frame with a "lengthens" shape: more rows, less columns
A data frame to pivot.
A string specifying the name of the column to create from
the data stored in the column names of df
.
A string specifying the name of the column to create from the data stored in cell values.