Incorrect order of colnames in pivot_wider.()
with names_glue
#579
Labels
bug
Something isn't working
pivot_wider.()
with names_glue
#579
pivot_wider.()
assigns names to variables in incorrect order, when:names_glue
parameter is used with{.value}
placeholdernames_from
is unsortedError is reproducible in both current CRAN version and development version.
See minimal example below. With
names_glue
(df2) columns are ordered as they would be without this option (df1), but column names are ordered as values appear in the lettr column. This issue is solved, when letter variable is sorted beforehand (df3).Created on 2022-09-05 with reprex v2.0.2
Session info
The text was updated successfully, but these errors were encountered: