Replace ".", ' ', '-' in character()
by '_' to be compliant
with functions of Shinyjs
, Shiny
Arguments
- x
A
character()
to be processed
Value
A character()
of the same length as 'x' with modified
names.
Examples
ReplaceSpecialChars(c("foo.1", "foo-2", "foo 3"))
#> [1] "foo_1" "foo-2" "foo_3"