symbolToR: Title function to *reversibly* convert HGNC gene symbols to...

View source: R/symbolToR.R

symbolToRR Documentation

Title function to *reversibly* convert HGNC gene symbols to valid R names.

Description

This function reversibly converts HGNC gene symbols to valid R names by prepending "symbol.", and making the following substitutions: "-" to "hyphen", "@" to "ampersand", and "/" to "forwardslash".

Usage

symbolToR(x)

Arguments

x

vector of HGNC symbols

Value

a vector of valid R names, of the same length as x, which can be converted to the same HGNC symbols using the rToSymbol function.

See Also

rToSymbol


waldronlab/HGNChelper documentation built on April 10, 2022, 7:39 p.m.