https://github.com/ctlab/phantasus
Revision 1c81aa62b4727512b27fecc9de31baa219212c28 authored by Vladislav Kamenev on 26 February 2019, 12:40:39 UTC, committed by Vladislav Kamenev on 26 February 2019, 12:40:39 UTC
1 parent 754f842
Raw File
Tip revision: 1c81aa62b4727512b27fecc9de31baa219212c28 authored by Vladislav Kamenev on 26 February 2019, 12:40:39 UTC
Minimal travis image
Tip revision: 1c81aa6
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