R/sub.ID.R

`sub.ID` <-
function(x) {
        strings <- rownames(x[[1]])
        id <-   sub("^[A-Za-z]*?-[0-9]*?-[0-9]*?-0","",strings)
        ident <- sub("-", "", id)
        rownames (x[[1]]) <- ident
        rownames (x[[2]]) <- ident
        rownames (x[[3]]) <- ident
        return (x)
}

Try the RPPanalyzer package in your browser

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

RPPanalyzer documentation built on May 2, 2019, 6:10 p.m.