Learn R Programming

h2o (version 2.8.4.4)

h2o.rm: Removes H2O objects from the server where H2O is running.

Description

Allows users to remove H2O objects from the server where the instance of H2O is running. This call acts on the H2O server through the R console, and does NOT remove the associated named object from the R environment.

Usage

h2o.rm(object, keys)

Arguments

object
An H2OClient object containing the IP address and port of the server running H2O.
keys
the hex key associated with the object to be removed.

See Also

h2o.assign, h2o.ls

Examples

Run this code
# Remove an H2O object from the server where H2O is running.
library(h2o)
localH2O = h2o.init()
prosPath = system.file("extdata", "prostate.csv", package="h2o")
prostate.hex = h2o.importFile(localH2O, path = prosPath, key = "prostate.hex")

# Remove an H2O object from the server and from the R environment
h2o.ls(localH2O)
h2o.rm(object = localH2O, keys = "prostate.hex")
remove(prostate.hex)
h2o.ls(localH2O)

Run the code above in your browser using DataLab