Extract a dataset consisting of a subset of treatments/readers from a larger dataset

DfExtractDataset(dataset, trts, rdrs)

Arguments

dataset

The original dataset from which the subset is to be extracted

trts

A vector contains the indices of the treatments to be extracted. If this parameter is not supplied, all treatments are extracted.

rdrs

A vector contains the indices of the readers to be extracted. If this parameter is not supplied, all readers are extracted.

Value

A dataset containing only the specified treatments and readers that were extracted from the original dataset

Details

Note that trts and rdrs are the vectors of indices not IDs. For example, if the ID of the first reader is "0", the corresponding value in trts should be 1 not 0.

Examples

## Extract the data corresponding to the second reader in the 
## first modality from an included ROC dataset
ds1 <- DfExtractDataset(dataset05, trts = 1, rdrs = 2)

## Extract the data of the first and third reader in all 
## modality from the included ROC dataset
ds2 <- DfExtractDataset(dataset05, rdrs = c(1, 3))