Learn R Programming

rpact (version 5.0.0)

add: Add Objects to a Collection

Description

S3 generic for adding objects. The TrialComparison method delegates to $add() and modifies the existing comparison by reference.

The TrialComparison method appends objects to the comparison.

Usage

add(x, ...)

# S3 method for TrialComparison add(x, ...)

Value

The modified comparison for TrialComparison.

Arguments

x

An object supporting an add() method, such as a TrialComparison.

...

For TrialComparison, designs, plans, simulations, lists or comparisons to append. The optional named argument objects is appended after the other arguments, with the same rules as getComparison().

See Also

getComparison(), delete()

Examples

Run this code
comparison <- getComparison(fixed = getDesignFixed())
comparison |> add(sequential = getDesignGroupSequential(kMax = 2))
comparison |> add(objects = list(other = getDesignFixed(alpha = 0.05)))

Run the code above in your browser using DataLab