R/mtrim.R

mtrim <- function (x){
    ## Removes white spaces from both sides of a string like a Refseq ID.
    gsub("^\\s+|\\s+$", "", x)
}

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.