Created
September 1, 2016 19:32
-
-
Save lixzhang/df4916a5a0dfa96005fba8402ad4ae10 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
bank_mod <- reshape(bank, | |
v.names = "Expense", | |
idvar = "CardID", | |
timevar = "month", | |
direction = "wide") | |
names(bank_mod) <- gsub("\\.", "", names(bank_mod)) | |
bank_mod <- bank_mod[, c("CardID", "Expense1", "Expense2", "Expense3")] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment