Revision b2cf762bc10e284e0212751c8ea52f93b6fb34d8 authored by Vladislav Kamenev on 29 October 2018, 16:55:09 UTC, committed by Vladislav Kamenev on 31 October 2018, 07:20:02 UTC
1 parent 258dd48
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