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
}

Try the goProfiles package in your browser

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

goProfiles documentation built on Nov. 8, 2020, 8:12 p.m.