View source: R/data_transforms.R
string.replacer | R Documentation |
Replace all characters entries in data frame
string.replacer(df, pattern, replacement)
df |
Data frame containing character entries |
pattern |
Pattern to use for matching |
replacement |
Replacement of entries matching pattern |
A data frame with entries following the pattern being replaced by replacement
df <- data.frame(c("1", "2", "3", "4")) modified.df <- epair:::string.replacer(df, "1", "One") modified.df
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.