cleanColname {hiAnnotator}R Documentation

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

cleanColname("HIV-test")
cleanColname("HIV*test")
cleanColname("HIV-test", "myAlias")

[Package hiAnnotator version 1.28.0 Index]