dt.sub | R Documentation |
In-place pattern matching and replacement in a data.table.
dt.sub( DT, pattern, replacement, ignore.case = FALSE, perl = FALSE, fixed = FALSE, useBytes = FALSE )
DT |
A |
pattern |
A |
replacement |
A |
ignore.case |
A |
perl |
A |
fixed |
A |
useBytes |
A |
A data.table
.
Yoann Pageaud.
dtbl<-data.table(col1 = rev(seq(16)), col2=rep(x = c("hello", "world"), 8)) dt.sub(DT = dtbl, pattern = "hello", replacement = "goodbye")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.