Learn R Programming

MultiDataSet (version 1.0.2)

chrNumToChar: Convert chr numbers to chr strings

Description

Given a vector of number representing the chromosomes, convert them to string (e.g 1 to chr1). 23 is consider chrX, 24 is chrY, 25 is chrXY (probes shared between chromosomes X and Y) and 26 is chrMT.

Usage

chrNumToChar(vector)

Arguments

vector
The vector with the chromosome numbers

Value

A vector with the chromosomes in string format.

Examples

Run this code
chromosomes <- c(1, 3, 4, 23, 15)
stringChrs <- chrNumToChar(chromosomes)
stringChrs

Run the code above in your browser using DataLab