% Generated by roxygen2 (4.0.1): do not edit by hand \name{xgb.DMatrix.save} \alias{xgb.DMatrix.save} \title{Save xgb.DMatrix object to binary file} \usage{ xgb.DMatrix.save(DMatrix, fname) } \arguments{ \item{model}{the model object.} \item{fname}{the name of the binary file.} } \description{ Save xgb.DMatrix object to binary file } \examples{ data(iris) iris[,5] <- as.numeric(iris[,5]) dtrain <- xgb.DMatrix(as.matrix(iris[,1:4]), label=iris[,5]) xgb.DMatrix.save(dtrain, 'iris.xgb.DMatrix') dtrain <- xgb.DMatrix('iris.xgb.DMatrix') }