View source: R/class_trial_comparison.R
| getObjects | R Documentation |
S3 generic for retrieving the objects contained in a collection.
The TrialComparison method delegates to $getObjects().
The TrialComparison method returns the list of contained objects.
getObjects(x, ...)
## S3 method for class 'TrialComparison'
getObjects(x, ...)
x |
An object supporting a |
... |
Further arguments. Currently unused for |
The returned list contains references to the original R6 objects. Changing
a contained object affects subsequent comparisons. Replacing or removing
entries in the returned list does not change the comparison's membership;
use add() and delete() to modify the collection.
For TrialComparison, the list of contained objects in their stored
order, retaining supplied names, or an empty list for an empty comparison.
getComparison(), compare()
comparison <- getComparison(
fixed = getDesignFixed(),
sequential = getDesignGroupSequential(kMax = 2)
)
objects <- comparison |> getObjects()
names(objects)
identical(objects$fixed, comparison$fixed)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.