Description Usage Arguments Value Examples
View source: R/replace_internet_slang.R
Replaces Internet slang.
| 1 2 3 4 5 6 7 | 
| x | The text variable. | 
| slang | A vector of slang strings to replace. | 
| replacement | A vector of string to replace slang with. | 
| ignore.case | logical.  If  | 
| ... | Other arguments passed to  | 
Returns a vector with names replaced.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | x <- c(
    "Marc the n00b needs to RTFM otherwise ymmv.",
    "TGIF and a big w00t!  The weekend is GR8!",
    "Will will do it",
    'w8...this PITA needs me to say LMGTFY...lmao.',
    NA
)
replace_internet_slang(x)
replace_internet_slang(x, ignore.case = FALSE)
replace_internet_slang(x, replacement = '<<SLANG>>')
replace_internet_slang(
    x, 
    replacement = paste0('{{ ', lexicon::hash_internet_slang[[2]], ' }}')
)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.