How to reshape data from long to wide format April 12, 2022 by Tarik Using reshape function: reshape(dat1, idvar = "name", timevar = "numbers", direction = "wide")