agaricus.train: Training part from Mushroom Data Set

Description Usage Format Details References


This data set is originally from the Mushroom data set, UCI Machine Learning Repository.




A list containing a label vector, and a dgCMatrix object with 6513 rows and 127 variables


This data set includes the following fields:

  • label the label for each record

  • data a sparse Matrix of dgCMatrix class, with 126 columns.


Bache, K. & Lichman, M. (2013). UCI Machine Learning Repository []. Irvine, CA: University of California, School of Information and Computer Science.

Search within the xgboost package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.