View source: R/flowFrame-accessors.R
fr_append_cols | R Documentation |
Append data columns to a flowFrame
fr_append_cols(fr, cols)
fr |
A |
cols |
A numeric matrix containing the new data columns to be added. Must have unique column names to be used as new channel names. |
It is used to add extra data columns to the existing flowFrame. It handles
keywords and parameters properly to ensure the new flowFrame can be written
as a valid FCS through the function write.FCS
.
A flowFrame
Mike Jiang
data(GvHD)
tmp <- GvHD[[1]]
kf <- kmeansFilter("FSC-H"=c("Pop1","Pop2","Pop3"), filterId="myKmFilter")
fres <- filter(tmp, kf)
cols <- as.integer(fres@subSet)
cols <- matrix(cols, dimnames = list(NULL, "km"))
tmp <- fr_append_cols(tmp, cols)
tmpfile <- tempfile()
write.FCS(tmp, tmpfile)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.