h2o.cummax: Return the cumulative max over a column or across a row

View source: R/frame.R

h2o.cummaxR Documentation

Return the cumulative max over a column or across a row

Description

Return the cumulative max over a column or across a row

Usage

h2o.cummax(x, axis = 0)

Arguments

x

An H2OFrame object.

axis

An int that indicates whether to do down a column (0) or across a row (1).

See Also

cumsum for the base R implementation, cummax().

Examples

## Not run: 
library(h2o)
h2o.init()

frame <- h2o.createFrame(rows = 6, cols = 2,
                         categorical_fraction = 0.0, 
                         missing_fraction = 0.7, 
                         seed = 123)
h2o.cummax(frame, 1)

## End(Not run)

h2o documentation built on May 29, 2024, 4:26 a.m.