Learn R Programming

DVHmetrics (version 0.4.2)

readConstraint: Read constraint definitions from text file

Description

Reads the definition of quality assurance constraints from a text file.

Usage

readConstraint(x, ...)

Arguments

x

character string giving the path to a single text file with the constraint definition. May contain globbing symbols understood by Sys.glob. If missing and in interactive mode, readDVH opens a file selector widget. See Details.

...

Further arguments passed to read.table, e.g., sep="\t" to define the column sepator as tab.

Value

A data.frame with columns patID, structure, constraint that can be used in functions checkConstraint and showConstraint.

Details

This is a wrapper for read.table.

The text file should contain three columns with the column names patID, structure, constraint in the first line. Each further line then defines one constraint and the scope it applies to in terms of patients and structures. See checkConstraint for the definition of a constraint and for the definition of a scope. Example content:

"patID" "structure" "constraint" "*" "HEART" "D1CC < 20Gy" "234" "*" "V10% > 8CC"

See Also

read.table, checkConstraint, saveConstraint, showConstraint

Examples

Run this code
# NOT RUN {
readConstraint("constraint.txt")
readConstraint()
# }

Run the code above in your browser using DataLab