powered by
match and %in% return values similar to the base R generic functions.
match
%in%
h2o.match(x, table, nomatch = 0, incomparables = NULL)match.H2OFrame(x, table, nomatch = 0, incomparables = NULL)x %in% table
match.H2OFrame(x, table, nomatch = 0, incomparables = NULL)
x %in% table
Returns a vector of the positions of (first) matches of its first argument in its second
a categorical vector from an H2OFrame object with values to be matched.
an R object to match x against.
x
the value to be returned in the case when no match is found.
a vector of calues that cannot be matched. Any value in x matching a value in this vector is assigned the nomatch value.
nomatch
match for base R implementation.
if (FALSE) { h2o.init() iris_hf <- as.h2o(iris) h2o.match(iris_hf[, 5], c("setosa", "versicolor")) }
Run the code above in your browser using DataLab