Revision 27d7ae02f54e622c7ad7bca888382fe41f9c290e authored by Alexey Sergushichev on 26 November 2019, 10:16:42 UTC, committed by Alexey Sergushichev on 26 November 2019, 10:16:42 UTC
1 parent 578cdd3
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