Explore Courses Blog Tutorials Interview Questions
0 votes
in Machine Learning by (19k points)

I'm new to R and H2O and I have tried to find a way to convert r data frame to an h2o object. I have spent some time research on how to do this with no luck. Another 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 the complete opposite of this. I want to convert r "" data object converted to the h2o object named "prostate.hex". Thanks in advance.

1 Answer

0 votes
by (33.1k points)

As per h2o version, it does not require any parameters. You can simply pass the data from the function.

For example:

iris.hex <- as.h2o(iris)

Hope this answer helps you. For more insights, study Data Structures In R

Browse Categories