h2o.rep_len: Replicate Elements of Vectors or Lists into H2O

Description Usage Arguments Value Examples

View source: R/frame.R

Description

h2o.rep_len performs just as rep does. It replicates the values in x in the H2O backend.

Usage

1
h2o.rep_len(x, length.out)

Arguments

x

an H2O frame

length.out

non negative integer. The desired length of the output vector.

Value

Creates an H2OFrame of the same type as x

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
library(h2o)
h2o.init()

f <- "https://h2o-public-test-data.s3.amazonaws.com/smalldata/iris/iris_train.csv"
iris <- h2o.importFile(f)
h2o.rep_len(iris, length.out = 3)

## End(Not run)

h2o documentation built on Oct. 10, 2021, 1:08 a.m.