Revision b70196b5bd3819379fb4440013478d09455b1fb3 authored by petrovich on 21 October 2018, 23:13:42 UTC, committed by Vladislav Kamenev on 26 October 2018, 11:35:45 UTC
1 parent c294c2e
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())
}
Computing file changes ...