Skip to contents

Replace ".", ' ', '-' in character() by '_' to be compliant with functions of Shinyjs, Shiny

Usage

ReplaceSpecialChars(x)

Arguments

x

A character() to be processed

Value

A character() of the same length as 'x' with modified names.

Author

Samuel Wieczorek

Examples


ReplaceSpecialChars(c("foo.1", "foo-2", "foo 3"))
#> [1] "foo_1" "foo-2" "foo_3"