rocheCore: Extract core identifiers from Roche compound IDs

Description Usage Arguments Value See Also Examples

View source: R/rocheCompound.R

Description

Extract core identifiers from Roche compound IDs

Usage

1
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

1
2
3
4
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)

ribiosUtils documentation built on March 13, 2020, 2:54 a.m.