From f295177b1d404ddff844a297e057a37ee6bd4d35 Mon Sep 17 00:00:00 2001 From: hetong Date: Mon, 19 Jan 2015 13:36:53 -0800 Subject: [PATCH] add nrow to getinfo --- R-package/R/getinfo.xgb.DMatrix.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R-package/R/getinfo.xgb.DMatrix.R b/R-package/R/getinfo.xgb.DMatrix.R index 830bbbffa..53ca5748c 100644 --- a/R-package/R/getinfo.xgb.DMatrix.R +++ b/R-package/R/getinfo.xgb.DMatrix.R @@ -39,7 +39,7 @@ setMethod("getinfo", signature = "xgb.DMatrix", if (name != "nrow"){ ret <- .Call("XGDMatrixGetInfo_R", object, name, PACKAGE = "xgboost") } else { - ret <- .Call("XGDMatrixNumRow_R", object) + ret <- .Call("XGDMatrixNumRow_R", object, PACKAGE = "xgboost") } return(ret) })