Return the number of columns present in x.

h2o.ncol(x)

Arguments

x

An H2OFrame object.

See also

nrow for the base R implementation, ncol().

Examples

if (FALSE) {
library(h2o)
h2o.init()

f <- "https://h2o-public-test-data.s3.amazonaws.com/smalldata/iris/iris_train.csv"
iris <- h2o.importFile(f)
h2o.ncol(iris)
}