rToSymbol: function to reverse the conversion made by symbolToR

Description Usage Arguments Value Author(s) Examples

Description

This function reverses the actions of the symbolToR function.

Usage

1

Arguments

x

the character vector returned by the symbolToR function.

Value

a character vector of HGNC gene symbols, which are not in general valid R names.

Author(s)

Levi Waldron and Markus Riester

Examples

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

lwaldron/MistakenIdentities documentation built on May 21, 2019, 9 a.m.