Reshape Long to Wide
User here chooses to reshape from longer dataset to wider dataset. This option takes a long dataset and converts it to a wide dataset by converting (widening) columns. Pivot_wider "lengthens" data, increasing the number of rows and decreasing the number of columns. User can use pivot_wider when user has variables/columns whose values need to be in rows.

Last modified: 01 October 2025