Learn R Programming

RadOnc (version 1.1.0)

subset.DVH.list: Extract a subset of a larger DVH list

Description

This function is designed to isolate one or more structure(s) from a list of DVH lists according to user input.

Usage

## S3 method for class 'DVH.list':
subset(x, structure, patient, ID, constraint, ignore.case=TRUE, select)

Arguments

x
Represents a DVH.list object (e.g. generated by read.DVH()).
structure
Vector used to sub-select structures from x; may be a character vector containing structure names (regular expressions may be specified if desired, see regex for more details).
patient
Vector used to sub-select specific patient data from x; may be a character vector containing patient names (regular expressions may be specified if desired, see regex for more details).
ID
Vector used to sub-select specific patient data from x using exact matching on patient identifiers.
constraint
Vector of one or more dosimetric constraints to apply to x to assess whether or not each component DVH should be included in the resultant list. More than one parameter may be specified at a time. Parameter specification should be of the for
ignore.case
Logical value specifying whether or not to use case-sensitive pattern matching; if TRUE (default), case is ignored during matching, and if FALSE, the pattern matching is case sensitive.
select
Must be one of "all" (default), "any", or "none". This value specifies the how to combine multiple selection inputs. When select = "all", a given DVH is only included in the resulting DVH list when it m

Value

  • Returns a single DVH list

See Also

DVH.list

Examples

Run this code
data(list="RadOnc", package="RadOnc")
subset(johndoe, structure="kidney", constraint="Dmean < 500(cGy)", ignore.case=TRUE)
subset(johndoe, constraint="volume > 200(cc)")

Run the code above in your browser using DataLab