https://github.com/ctlab/phantasus
Tip revision: a372342eccfe3d36bceee43e38b2db79dce05c8a authored by vobencha on 30 October 2018, 15:42:08 UTC
bump x.y.z versions to even y prior to creation of RELEASE_3_8 branch
bump x.y.z versions to even y prior to creation of RELEASE_3_8 branch
Tip revision: a372342
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())
}