Revision a372342eccfe3d36bceee43e38b2db79dce05c8a authored by vobencha on 30 October 2018, 15:42:08 UTC, committed by vobencha on 30 October 2018, 15:42:08 UTC
1 parent cf8e555
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