Revision d227226ab2302a82e6aa39eb5417f69e605243bb authored by Alexey Sergushichev on 20 December 2019, 16:41:29 UTC, committed by Alexey Sergushichev on 20 December 2019, 16:41:29 UTC
1 parent 22f39e5
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