FeatureHashing (

1 user

Creates a Model Matrix via Feature Hashing with a Formula Interface.


Feature hashing, also called as the hashing trick, is a method to transform features of a instance to a vector. Thus, it is a method to transform a real dataset to a matrix. Without looking up the indices in an associative array, it applies a hash function to the features and uses their hash values as indices directly. The method of feature hashing in this package was proposed in Weinberger et al. (2009) . The hashing algorithm is the murmurhash3 from the 'digest' package. Please see the README in for more information.

Maintainer: Wush Wu
Author(s): Wush Wu [aut, cre], Michael Benesty [aut, ctb]

License: GPL (>= 3) | file LICENSE

Uses: magrittr, Matrix, Rcpp, RUnit, glmnet, pROC, knitr, xgboost, rmarkdown

Released 11 days ago.

5 previous versions



  5.0/5 (1 vote)


  0.0/5 (0 votes)

Log in to vote.


No one has written a review of FeatureHashing yet. Want to be the first? Write one now.

Related packages:(20 best matches, based on common tags.)

Search for FeatureHashing on google, google scholar, r-help, r-devel.

Visit FeatureHashing on R Graphical Manual.