https://github.com/ctlab/phantasus
Tip revision: bcd9d807055b490961edbebb49afb0f967249245 authored by Alexey Sergushichev on 13 May 2020, 11:00:43 UTC
Merge branch 'master' of git.bioconductor.org:packages/phantasus
Merge branch 'master' of git.bioconductor.org:packages/phantasus
Tip revision: bcd9d80
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())
}