sub-.Flow: Flow subset

[.FlowR Documentation

Flow subset

Description

Overloads subset operator for Flow object. Allow subsetting object based on entities features (first argument, a la "rows") and tasks (a la "columns").

First argument can be an expression on entity metadata that returns an integer or logical of length = nrow(entities).

Tasks can be indices or names of tasks

Usage

## S3 method for class 'Flow'
obj[i = NULL, j = NULL, include = NULL, exclude = NULL, quick = FALSE, ...]

Arguments

obj

Flow object to be subset

i

indices of entities

j

indices of tasks to subset

include

character vector representing tasks to include in output object

exclude

character vector representing nodes or tasks to exclude in output object

Value

A new gNode that contains only the given id's

Author(s)

Marcin Imielinski


mskilab/Flow documentation built on Jan. 12, 2023, 8:31 a.m.