Returns a vector of numbers of rows and of columns in an xgb.DMatrix
.
Usage
# S3 method for class 'xgb.DMatrix'
dim(x)
Arguments
- x
Object of class xgb.DMatrix
Details
Note: since nrow()
and ncol()
internally use dim()
, they can also
be directly used with an xgb.DMatrix
object.