Revision 01a9bfc6ff37f5117323b9d09fe8565c83cfc488 authored by Vladislav Kamenev on 05 October 2018, 14:52:58 UTC, committed by Vladislav Kamenev on 05 October 2018, 14:52:58 UTC
1 parent 767cc8d
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 ...