as_h2o {agua} | R Documentation |
Data conversion tools
Description
Data conversion tools
Usage
as_h2o(df, destination_frame_prefix = "object")
## S3 method for class 'H2OFrame'
as_tibble(
x,
...,
.rows = NULL,
.name_repair = c("check_unique", "unique", "universal", "minimal"),
rownames = pkgconfig::get_config("tibble::rownames", NULL)
)
Arguments
df |
A R data frame. |
destination_frame_prefix |
A character string to use as the base name. |
x |
An H2OFrame. |
... |
Unused, for extensibility. |
.rows |
The number of rows, useful to create a 0-column tibble or just as an additional check. |
.name_repair |
Treatment of problematic column names:
This argument is passed on as |
rownames |
How to treat existing row names of a data frame or matrix:
Read more in rownames. |
Value
A tibble or, for as_h2o()
, a list with data
(an H2OFrame) and
id
(the id on the h2o server).
Examples
# start with h2o::h2o.init()
if (h2o_running()) {
cars2 <- as_h2o(mtcars)
cars2
class(cars2$data)
cars0 <- as_tibble(cars2$data)
cars0
}