https://github.com/ctlab/phantasus
Tip revision: b2cf762bc10e284e0212751c8ea52f93b6fb34d8 authored by Vladislav Kamenev on 29 October 2018, 16:55:09 UTC
ARCHS4 is now subfolder in cache
ARCHS4 is now subfolder in cache
Tip revision: b2cf762
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())
}