Method for apply on H2OFrame objects.
apply(X, MARGIN, FUN, ...)
X | an H2OFrame object on which |
---|---|
MARGIN | the vector on which the function will be applied over, either
|
FUN | the function to be applied. |
… | optional arguments to |
Produces a new H2OFrame of the output of the applied function. The output is stored in H2O so that it can be used in subsequent H2O processes.
apply for the base generic
# NOT RUN { h2o.init() irisPath <- system.file("extdata", "iris.csv", package="h2o") iris.hex <- h2o.importFile(path = irisPath, destination_frame = "iris.hex") summary(apply(iris.hex, 2, sum)) # }