Learn R Programming

HGNChelper (version 0.3.4)

rToSymbol: function to reverse the conversion made by symbolToR

Description

This function reverses the actions of the symbolToR function.

Usage

rToSymbol(x)

Arguments

x
the character vector returned by the symbolToR function.

Value

Examples

Run this code

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.")

Run the code above in your browser using DataLab