https://github.com/ctlab/phantasus
Tip revision: 44656149198007189ebc600ddfbd19539e86be1f authored by Vladislav Kamenev on 28 January 2019, 10:05:53 UTC
1.3.3
1.3.3
Tip revision: 4465614
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())
}