How can you change the order of the variable names in pivot_wider to have he names_from before the values_from?
Using the us_rent_income dataset:
df <- us_rent_income %>%
pivot_wider(names_from = NAME,
values_from = c(estimate, moe))
This gives results like 'estimate_Alabama', how do we change the order of the variable so it is 'Alabama_estimate'?