ReplaceSpecialCharacters: ReplaceSpecialCharacters

View source: R/Stringendo.R

ReplaceSpecialCharactersR Documentation

ReplaceSpecialCharacters

Description

ReplaceSpecialCharacters replaces special characters '[]$@()' with dots.

Usage

ReplaceSpecialCharacters(
  string = "obj@meta$alpha[[3]]",
  replacement = ".",
  remove_dots = FALSE
)

Arguments

string

The string potentially having special characters.

replacement

The character to replace special characters with.

remove_dots

If TRUE, all dots are removed from the string (overwrites if replacement is a dot).

Value

A string with special characters replaced by dots.

Examples

ReplaceSpecialCharacters(string = "obj@meta$alpha[[3]]")

vertesy/Stringendo documentation built on Nov. 10, 2024, 4:35 a.m.