h2o.rep_len | R Documentation |
h2o.rep_len
performs just as rep
does. It replicates the values in
x
in the H2O backend.
h2o.rep_len(x, length.out)
x |
an H2O frame |
length.out |
non negative integer. The desired length of the output vector. |
Creates an H2OFrame of the same type as x
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.