R/expandNames.R

Defines functions `expandNames`

`expandNames` <-
function(icol, namesVec, ncateg) {
        colName <- namesVec[icol]
        colIndexes <- unlist(strsplit(colName,"\\."))
        indexCol <- as.integer(colIndexes[length(colIndexes)])
        if (indexCol < ncateg)
                result <- paste(colName,as.character((indexCol+1):ncateg),sep=".") 
        else
                result <- NULL
        result
}
alexsanchezpla/goProfiles documentation built on May 28, 2019, 4:54 p.m.