subset.DataSetList: Filter a DataSetList by some criteria

Description Usage Arguments Value Examples

View source: R/DataSetList.R

Description

Filter a DataSetList by some criteria

Usage

1
2
## S3 method for class 'DataSetList'
subset(x, ...)

Arguments

x

The DataSetList

...

The conditions to filter on. Can be any expression which assigns True or False to a DataSet object, such as DIM == 625 or funcId == 2. Usage of && and || is only supported on default attributes (funcId, algId, DIM), not on combinations of with other attributes (e.g. instance). In those cases, & and | should be used respectively. Alternatively, this can be used as a keyword argument named 'text', with the condition as a string to be parsed. This allows exectution of subset commands on arbitrary variables in code.

Value

The filtered DataSetList

Examples

1
2
3
4
5
subset(dsl, funcId == 1)
subset(dsl, funcId == 1 && DIM == 16) # Can use && and || for default attributes
subset(dsl, instance == 1)
subset(dsl, instance == 1 & funcId == 1) # Can use & and | for all attributes
subset(dsl, instance == 1, funcId == 1) # Comma-seperated conditions are treated as AND

IOHanalyzer documentation built on Oct. 21, 2021, 5:06 p.m.