powered by
Creates a copy of the target column in which each string has all occurence of the regex pattern replaced with the replacement substring.
h2o.gsub(pattern, replacement, x, ignore.case = FALSE)
The pattern to replace.
The replacement pattern.
The column on which to operate.
Case sensitive or not
if (FALSE) { library(h2o) h2o.init() string_to_gsub <- as.h2o("r tutorial") sub_string <- h2o.gsub("r ", "H2O ", string_to_gsub) }
Run the code above in your browser using DataLab