I found this very helpful. Is there an equivalent method to transpose long to wide format?