cleanCharacterStrings: Clean character strings by removing special characters and...

View source: R/utils-standardize_names.R

cleanCharacterStringsR Documentation

Clean character strings by removing special characters and formatting.

Description

This function takes a character string as input and performs several cleaning operations to remove special characters, formatting, and unwanted substrings. The cleaned string is then returned as the output.

Usage

cleanCharacterStrings(name, space_action = "")

Arguments

name

A character string to be cleaned.

space_action

A character vector specifying the actions to be taken for space characters. One of c("", "-", " ").

Value

The cleaned character string.

Examples

cleanCharacterStrings("Cisplatin: 1 mg/mL (1.5 mM); 5 mM in DMSO")


bhklab/AnnotationGx documentation built on April 3, 2025, 4:27 p.m.