h2o (version 3.20.0.8)

as.matrix.H2OFrame: Convert an H2OFrame to a matrix

Description

Convert an H2OFrame to a matrix

Usage

# S3 method for H2OFrame
as.matrix(x, ...)

Arguments

x

An H2OFrame object

...

Further arguments to be passed down from other methods.

Examples

Run this code
# NOT RUN {
h2o.init()
irisPath <- system.file("extdata", "iris.csv", package="h2o")
iris <- h2o.uploadFile(path = irisPath)
iris.hex <- as.h2o(iris)
describe <- h2o.describe(iris.hex)
mins = as.matrix(apply(iris.hex, 2, min))
print(mins)
# }

Run the code above in your browser using DataCamp Workspace