h2o.ncol: Return the number of columns present in x.

View source: R/frame.R

h2o.ncolR Documentation

Return the number of columns present in x.

Description

Return the number of columns present in x.

Usage

h2o.ncol(x)

Arguments

x

An H2OFrame object.

See Also

nrow for the base R implementation, ncol().

Examples

## Not run: 
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)

## End(Not run)

h2o documentation built on May 29, 2024, 4:26 a.m.