Learn R Programming

raptr (version 0.0.1)

selections: Extract solution selections

Description

Extract selections for a given solution from a RapResults or RapSolved object.

Usage

selections(x, y)
"selections"(x, y = 0)
"selections"(x, y = 0)

Arguments

x
RapResults or RapSolved object.
y
NULL to return all values, integer 0 to return values for best solution, integer value greater than 0 for y'th solution value.
...
not used.

Value

matrix or numeric vector depending on arguments.

See Also

RapResults, RapSolved.

Examples

Run this code
data(sim_rs)
# selections for best solution
selections(sim_rs, 0)
# selections for second solution
selections(sim_rs, 2)
# selections for each solution
selections(sim_rs)

Run the code above in your browser using DataLab