fix print.xgb.DMatrix doc

This commit is contained in:
Vadim Khotilovich
2016-03-27 19:42:26 -05:00
parent 4b760762f9
commit fb5291271e
3 changed files with 22 additions and 5 deletions

View File

@@ -12,7 +12,15 @@ print.xgb.DMatrix(x, verbose = FALSE, ...)
\item{verbose}{whether to print colnames (when present)}
}
\description{
Print information about an xgb.DMatrix.
Currently is would display
Print information about xgb.DMatrix.
Currently it displays dimensions and presence of info-fields and colnames.
}
\examples{
data(agaricus.train, package='xgboost')
train <- agaricus.train
dtrain <- xgb.DMatrix(train$data, label=train$label)
dtrain
print(dtrain, verbose=T)
}