Learn R Programming

hiAnnotator (version 1.6.2)

cleanColname: Clean the supplied string from punctuations and spaces.

Description

Function to clean the supplied string from punctuations and spaces so it can be used as column headings.

Usage

cleanColname(x, description = NULL)

Arguments

x
string or a vector to be cleaned.
description
OPTIONAL string identifying the purpose of the supplied string in x to be displayed in the cleaning message. This triggers a message.

Value

  • cleaned string or a vector.

See Also

getFeatureCounts, makeGRanges, getNearestFeature, getSitesInFeature.

Examples

Run this code
cleanColname("HIV-test")
cleanColname("HIV*test")
cleanColname("HIV-test","myAlias")

Run the code above in your browser using DataLab