https://github.com/ctlab/phantasus
Revision 4137063c9e2fcbec50c50efffb5946cbca69ef00 authored by Vladislav Kamenev on 21 June 2019, 13:11:12 UTC, committed by Vladislav Kamenev on 21 June 2019, 13:11:12 UTC
1 parent cc8a30d
Raw File
Tip revision: 4137063c9e2fcbec50c50efffb5946cbca69ef00 authored by Vladislav Kamenev on 21 June 2019, 13:11:12 UTC
Update JS
Tip revision: 4137063
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