h2o.match | R Documentation |
match
and %in%
return values similar to the base R generic
functions.
h2o.match(x, table, nomatch = 0, incomparables = NULL)
match.H2OFrame(x, table, nomatch = 0, incomparables = NULL)
x %in% table
x |
a categorical vector from an H2OFrame object with values to be matched. |
table |
an R object to match |
nomatch |
the value to be returned in the case when no match is found. |
incomparables |
a vector of calues that cannot be matched. Any value in
|
Returns a vector of the positions of (first) matches of its first argument in its second
match
for base R implementation.
## Not run:
h2o.init()
iris_hf <- as.h2o(iris)
h2o.match(iris_hf[, 5], c("setosa", "versicolor"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.