swap_data_cols: Swap the colnames Perform some validity checks before...

Description Usage Arguments Value Examples

View source: R/GatingSet_Methods.R

Description

Swap the colnames Perform some validity checks before returning the updated colnames

Usage

1
swap_data_cols(cols, swap_cols)

Arguments

cols

the original colname vector

swap_cols

a named list specifying the pairs to be swapped

Value

the new colname vector that has some colnames swapped

Examples

1
2
3
4
5
6
library(flowCore)
data(GvHD)
fr <- GvHD[[1]]
colnames(fr)
new <- swap_data_cols(colnames(fr), list(`FSC-H` = "SSC-H", `FL2-H` = "FL2-A"))
colnames(fr) <- new

RGLab/flowWorkspace documentation built on July 18, 2021, 9:05 p.m.