Revision 4137063c9e2fcbec50c50efffb5946cbca69ef00 authored by Vladislav Kamenev on 21 June 2019, 13:11:12 UTC, committed by Vladislav Kamenev on 21 June 2019, 13:11:12 UTC
1 parent cc8a30d
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 ...