Revision 1366c314de676f59a1c23ed7665dec7413e0c1c2 authored by Alexey Sergushichev on 11 September 2018, 14:58:16 UTC, committed by Alexey Sergushichev on 11 September 2018, 14:58:16 UTC
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 ...