h2o.gsub: String Global Substitute

Description Usage Arguments Examples

View source: R/frame.R

Description

Creates a copy of the target column in which each string has all occurence of the regex pattern replaced with the replacement substring.

Usage

1
h2o.gsub(pattern, replacement, x, ignore.case = FALSE)

Arguments

pattern

The pattern to replace.

replacement

The replacement pattern.

x

The column on which to operate.

ignore.case

Case sensitive or not

Examples

1
2
3
4
5
6
7
## Not run: 
library(h2o)
h2o.init()
string_to_gsub <- as.h2o("r tutorial")
sub_string <- h2o.gsub("r ", "H2O ", string_to_gsub)

## End(Not run)

h2o documentation built on Jan. 4, 2022, 1:09 a.m.