moveNode {flowWorkspace} | R Documentation

## move a node along with all of its descendant nodes to the given ancester

### Description

move a node along with all of its descendant nodes to the given ancester

### Usage

    moveNode(gh, node, to)

### Arguments

`gh` | GatingHierarchy
`node` | the node to be moved
`to` | the new parent node under which the `node` will be moved to

### Examples

    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"
    moveNode(gh, "CD4", new.parent)
    getParent(gh, "CD4")

[Package flowWorkspace version 3.30.2 Index]