Revision 0d6a5c07279c25af21abfe534b8cbb4a651042e3 authored by Alexey Sergushichev on 20 October 2018, 13:07:06 UTC, committed by Alexey Sergushichev on 20 October 2018, 13:07:06 UTC
1 parent 85f9f43
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 ...