Description Usage Arguments Examples
View source: R/substitute_non_alphanumeric_and_punctuation.R
A wrapper for gsub that substitutes non-alphanumeric and punctuation characters by "_". Initially idealized for generating filenames without reserved characters.
1 2 | substitute_non_alphanumeric_and_punctuation(x,
pattern = "[^A-Za-z0-9,;._-]", replacement = "_")
|
x |
the string to process. |
pattern |
see ?gsub. |
replacement |
see ?gsub. |
1 | substitute_non_alphanumeric_and_punctuation("1 !#$%* 11 ;'. R Tutorial")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.