booleanFilter-class {flowWorkspace} | R Documentation

## A class describing logical operation (& or |) of the reference populations

### Description

`booleanFilter` class inherits class `expressionFilter` and exists for the purpose of methods dispatching.

`booleanFilter` is a constructor from an expression

`char2booleanFilter` is a constructor from a character string

### Usage

    booleanFilter(expr, ..., filterId = "defaultBooleanFilter")

    char2booleanFilter(expr, ..., filterId = "defaultBooleanFilter")

    ## S4 method for signature 'booleanFilter'
    show(object)

### Arguments

`expr` | `expression` or `character`
`...` | further arguments to the expression
`filterId` | `character` identifier
`object` | `booleanFilter`

### See Also

`add` `GatingHierarchy`

### Examples

    # "4+/TNFa+" and "4+/IL2+" are two existing gates
    #note: no spaces between node names and & , ! operators
    booleanFilter(`4+/TNFa+&!4+/IL2+`)

    #programmatically
    n1 <- "4+/TNFa+"
    n2 <- "4+/IL2+"
    exprs <- paste0(n1, "&!", n2)
    call <- substitute(booleanFilter(v), list(v = as.symbol(exprs)))
    eval(call)

[Package flowWorkspace version 3.26.9 Index]