https://github.com/ctlab/phantasus
Tip revision: cf8e5559808b24cdcb78eaf0dd1ec95238c38381 authored by Vladislav Kamenev on 29 October 2018, 14:31:24 UTC
Updated tutorial
Updated tutorial
Tip revision: cf8e555
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())
}