getFJWSubsetIndices {CytoML} | R Documentation

## Fetch the indices for a subset of samples in a flowJo workspace, based on a keyword value pair

### Description

This function will calculate the indices of a subset of samples in a flowjo_workspace, based on a keyword/value filter. It is applied to a specific group of samples in the workspace. The output is meant to be passed to the subset= argument of flowjo_to_gatingset.

### Usage

    getFJWSubsetIndices(ws, key = NULL, value = NULL, group,
      requiregates = TRUE)

### Arguments

`ws` | `flowjo_workspace` object
`key` | `character` The name of the keyword.
`value` | `character` The value of the keyword.
`group` | `numeric` The group of samples to subset.
`requiregates` | `TRUE` or `FALSE`, specifying whether we include only samples that have gates attached or whether we include any sample in the workspace.

### Details

Returns an index vector into the samples in a flowJo workspace for use with flowjo_to_gatingset(subset=), based on a keyword/value filter in a specific group of samples.

### Value

A numeric vector of indices.

### See Also

`flowjo_to_gatingset`

[Package CytoML version 1.12.1 Index]