Learn R Programming

espadon (version 1.11.3)

set.reference.obj: Set the reference objects of a espadon object

Description

The function set.reference.obj adds to an espadon object the information identifying the espadon objects from which it derives.

Usage

set.reference.obj(obj, ref.obj, add = TRUE)

Value

Returns the espadon object obj, containing the ref.object.alias and ref.object.info fields identifying its reference objects

Arguments

obj

espadon object of class "dvh", "fan", "histo", "histo2D", "mesh", "rtplan", "struct", "undef" or "volume".

ref.obj

espadon object of class "dvh", "fan", "histo", "histo2D", "mesh", "rtplan", "struct", "undef" or "volume". List of espadon objects.

add

Boolean. If TRUE, the reference objects are added to those already contained by obj.

Examples

Run this code
# loading of toy-patient objects (decrease dxyz for better result)
step <- 6
pat <- toy.load.patient (modality = c("ct", "rtdose", "rtstruct"),
                         roi.name = c("eye"), dxyz = rep (step, 3),
                         beam.nb = 3)
display.obj.links(pat)                          
pat$rtstruct[[1]] <- set.reference.obj(pat$rtstruct[[1]],pat$ct[[1]])  
display.obj.links(pat)                          

Run the code above in your browser using DataLab