h2o (version 3.2.0.3)

h2o.nrow: The Number of Rows/Columns of an H2O Dataset

Description

Returns a count of the number of rows or columns in an H2OFrame object.

Usage

h2o.nrow(x)

h2o.ncol(x)

## S3 method for class 'H2OFrame': nrow(x)

## S3 method for class 'H2OFrame': ncol(x)

Arguments

x
An H2OFrame object.

See Also

dim for all the dimensions. nrow for the default R method.

Examples

Run this code
library(h2o)
localH2O <- h2o.init()
irisPath <- system.file("extdata", "iris.csv", package="h2o")
iris.hex <- h2o.uploadFile(localH2O, path = irisPath)
nrow(iris.hex)
ncol(iris.hex)

Run the code above in your browser using DataCamp Workspace