Learn R Programming

h2o (version 2.8.4.4)

nrow: The Number of Rows/Columns of a H2O Dataset

Description

Returns a count of the number of rows in an H2OParsedData object.

Usage

nrow(x)
ncol(x)

Arguments

x
An H2OParsedData object.

Value

  • An integer of length 1 indicating the number of rows or columns in the dataset.

See Also

dim which returns all dimensions

Examples

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

Run the code above in your browser using DataLab