https://github.com/ctlab/phantasus
Raw File
Tip revision: 18527bdef75ff43ba1a9bce8261df5818b82e50c authored by Vladislav Kamenev on 26 December 2018, 10:42:34 UTC
Add github token to master docker build
Tip revision: 18527bd
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