cf_append_cols: Append data columns to a flowFrame

View source: R/cytoframe.R

cf_append_colsR Documentation

Append data columns to a flowFrame

Description

Append data columns to a flowFrame

Usage

cf_append_cols(cf, cols)

Arguments

cf

A cytoframe.

cols

A numeric matrix containing the new data columns to be added. Must has column names to be used as new channel names.

Details

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 .

Examples


  library(flowCore)
  data(GvHD)
  tmp <- GvHD[[1]]
  cf <- flowFrame_to_cytoframe(tmp)
  kf <- kmeansFilter("FSC-H"=c("Pop1","Pop2","Pop3"), filterId="myKmFilter")
  fres <- filter(cf, kf)
  cols <- as.numeric(fres@subSet)
  cols <- matrix(cols, dimnames = list(NULL, "km"))
  cf <- cf_append_cols(cf, cols)
  



RGLab/flowWorkspace documentation built on March 17, 2024, 2:24 p.m.