Learn R Programming

IDConverter (version 0.3.4)

convert_icgc: Convert ICGC Identifiers

Description

Run data("icgc") to see detail database for conversion.

Usage

convert_icgc(
  x,
  from = "icgc_specimen_id",
  to = "icgc_donor_id",
  multiple = FALSE
)

Value

A character vector.

Arguments

x

A character vector to convert.

from

Which identifier type to be converted. One of .

to

Identifier type convert to. Same as parameter from.

multiple

if TRUE, return a data.table instead of a string vector, so multiple identifier mappings can be kept.

Examples

Run this code
# \donttest{
x <- convert_icgc("SP29019")
x
# }
if (FALSE) {
convert_icgc("SA170678")
}

Run the code above in your browser using DataLab