powered by
Fill NA's in a sequential manner up to a specified limit
h2o.fillna(x, method = "forward", axis = 1, maxlen = 1L)
an H2OFrame
A String: "forward" or "backward"
An Integer 1 for row-wise fill (default), 2 for column-wise fill
An Integer for maximum number of consecutive NA's to fill
An H2OFrame after filling missing values
library(h2o) h2o.init() fr.with.nas = h2o.createFrame(categorical_fraction=0.0,missing_fraction=0.7,rows=6,cols=2,seed=123) fr <- h2o.fillna(fr.with.nas, "forward", axis=1, maxlen=2L)
Run the code above in your browser using DataLab