R/editcolnames.R

Defines functions editcolnames

editcolnames <- function(y)
{
    colnames(y) <- if (
        length(
            grep("^X[\\d]", colnames(y), perl=TRUE)
        ) != 0
    ) {
        gsub("^X([\\d].*)", "\\1", colnames(y), perl=TRUE)
    } else {
        colnames(y)
    }
    
    return(y)
}
idrblab/EVALFQ documentation built on Sept. 29, 2022, 6:34 p.m.