h2o.gsub | R Documentation |
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)
pattern |
The pattern to replace. |
replacement |
The replacement pattern. |
x |
The column on which to operate. |
ignore.case |
Case sensitive or not |
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.