Description Usage Arguments Value Author(s) Examples
This function reverses the actions of the symbolToR function.
1 | rToSymbol(x)
|
x |
the character vector returned by the symbolToR function. |
a character vector of HGNC gene symbols, which are not in general valid R names.
Levi Waldron and Markus Riester
1 2 3 4 5 6 | library(HGNChelper)
data("hgnc.table", envir=environment())
hgnc.symbols <- as.character(na.omit(unique(hgnc.table[ ,2])))
if( !identical(all.equal(hgnc.symbols, rToSymbol(make.names(symbolToR(hgnc.symbols)))), TRUE))
stop("HGNC mapping was not reversible.")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.