Last chance! 50% off unlimited learning
Sale ends in
Extract a dataset consisting of a subset of treatments/readers from a larger dataset
DfExtractDataset(dataset, trts, rdrs)
A new dataset containing only the specified treatments and readers that were extracted from the original dataset
The original dataset from which the subset is to be extracted
A vector contains the indices of the treatments to be extracted. If this parameter is not supplied, all treatments are extracted.
A vector contains the indices of the readers to be extracted. If this parameter is not supplied, all readers are extracted.
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.
## Extract the data corresponding to the second reader in the
## first treatment from an included ROC dataset
ds1 <- DfExtractDataset(dataset05, trts = 1, rdrs = 2)
## Extract the data of the first and third reader in all
## treatment from the included ROC dataset
ds2 <- DfExtractDataset(dataset05, rdrs = c(1, 3))
Run the code above in your browser using DataLab