Skip to content

Instantly share code, notes, and snippets.

@dylanjf
Created June 12, 2013 21:08
Show Gist options
  • Save dylanjf/5769125 to your computer and use it in GitHub Desktop.
Save dylanjf/5769125 to your computer and use it in GitHub Desktop.
library(Matrix)
amazon_train = sparse.model.matrix(~. - 1, data = amazon_train)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment