Revision 4f02356bf15d830e972babb33adbbe26e5b07cce authored by Vladislav Kamenev on 16 October 2018, 14:18:36 UTC, committed by GitHub on 16 October 2018, 14:18:36 UTC
2 parent s af9d405 + f96cbfa
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