Revision c1069ff942f364c8bbda771405176d5f6173b3c8 authored by vobencha on 30 October 2018, 15:54:39 UTC, committed by vobencha on 30 October 2018, 15:54:39 UTC
1 parent a372342
Raw File
renameColumn.R
renameColumn <- function (es, isFeature = TRUE, oldName, newName) {
    if (isFeature) {
        fData(es)[[newName]] <- fData(es)[[oldName]]
        fData(es)[[oldName]] <- NULL
    } else {
        phenoData(es)[[newName]] <- phenoData(es)[[oldName]]
        phenoData(es)[[oldName]] <- NULL
    }

    assign("es", es, envir = parent.frame())
}
back to top