https://github.com/ctlab/phantasus
Revision 1345b2dbb9cc7b9781fc163539fe48692bf94c34 authored by Alexey Sergushichev on 31 January 2020, 19:24:18 UTC, committed by Alexey Sergushichev on 31 January 2020, 19:24:18 UTC
1 parent 438883b
Tip revision: 1345b2dbb9cc7b9781fc163539fe48692bf94c34 authored by Alexey Sergushichev on 31 January 2020, 19:24:18 UTC
Missed documentation
Missed documentation
Tip revision: 1345b2d
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 ...