Created
September 11, 2016 21:23
-
-
Save zunman/8912306465e43b2f2c9931df544dbd79 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
#convert sparse dtm to data.frame | |
data.DTM <- as.data.frame(as.matrix(sparse_DTM)) | |
#append label column | |
data.DTM$label <- data$label |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment