copyNode {flowWorkspace} | R Documentation |
Copy a node along with all of its descendant nodes to the given ancestor
copyNode(gh, node, to)
gh |
GatingHierarchy |
node |
the node to be copied |
to |
the new parent node under which the |
library(flowWorkspace) dataDir <- system.file("extdata",package="flowWorkspaceData") suppressMessages(gs <- load_gs(list.files(dataDir, pattern = "gs_manual",full = TRUE))) gh <- gs[[1]] old.parent <- getParent(gh, "CD4") new.parent <- "singlets" copyNode(gh, "CD4", new.parent)