
Return the cumulative max over a column or across a row
h2o.cummax(x, axis = 0)
An H2OFrame object.
An int that indicates whether to do down a column (0) or across a row (1).
cumsum
for the base R implementation, cummax()
.
# 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)
# }
Run the code above in your browser using DataLab