R/versrem.R

versrem <- function (x) {
    ## Removes the version from (almost) Refseq IDs.
    y <- x
    if (length(unlist(strsplit(mtrim(x), "_"))) > 2) {
        y <- paste(unlist(strsplit(mtrim(x), "_"))[1:2], sep="_", 
                   collapse="_")
    }
    y
}

Try the Pigengene package in your browser

Any scripts or data that you put into this service are public.

Pigengene documentation built on Nov. 8, 2020, 6:47 p.m.