Created
May 12, 2019 11:33
-
-
Save akshat3096/7bb34f6129ed1a9e8f06ae73d04b2c09 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data<- data.frame(variable1 = rep(LETTERS[1:3], each = 3), | |
variable2 = rep(paste0("factor", c(1, 2, 3)), 3), | |
num = 1:9) | |
head(data) | |
spread(data,variable2,num) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment