mannaya mannaya - 2 months ago 21x
R Question

How to convert r data frame to h2o object

Im new to R and H2O and I have tried to find a way to convert r data frame to a h2o object. I have spent some time research on how to do this with no luck. Other way around is possible and well documented as follows.

prosPath = system.file("extdata", "prostate.csv", package="h2o")
prostate.hex = h2o.importFile(localH2O, path = prosPath) <-

But what i want is complete opposite of this. I wants to convert r "" data object converted to h2o object named "prostate.hex".
Thanks in advance.


Please try this:

prostate.hex <- as.h2o(localH2O,, key="prostate.hex")