Learn R Programming

ribiosUtils (version 1.5-6)

rocheCore: Extract core identifiers from Roche compound IDs

Description

Extract core identifiers from Roche compound IDs

Usage

rocheCore(str, short = FALSE)

Arguments

str

Character strings

short

Logical, if TRUE, the short version of Roche identifiers (RO[0-9]{4}) is returned. Default: FALSE

Value

Core identifiers if the element is a Roche compound ID, the original element otherwise Non-character input will be converted to character strings first.

See Also

isRocheCompoundID

Examples

Run this code
# NOT RUN {
rocheCore(c("RO1234567-001", "RO1234567-001-000", "RO1234567", 
    "ROnoise-001", "anyOther-not-affected"))
rocheCore(c("RO1234567-001", "RO1234567-001-000", "RO1234567",
    "ROnoise-001","anyOther-not-affected"), short=TRUE)

# }

Run the code above in your browser using DataLab