View source: R/GatingSet_Methods.R
swap_data_cols | R Documentation |
Swap the colnames Perform some validity checks before returning the updated colnames
swap_data_cols(cols, swap_cols)
cols |
the original colname vector |
swap_cols |
a named list specifying the pairs to be swapped |
the new colname vector that has some colnames swapped
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.