getSolutionAttributes {TestDesign} | R Documentation |
Retrieve constraints-related attributes from solution
Description
getSolutionAttributes
is a helper function for retrieving constraints-related attributes from a solution.
Usage
getSolutionAttributes(constraints, item_idx, all_values = FALSE)
Arguments
constraints |
a |
item_idx |
item indices from a solution. |
all_values |
if |
Value
If
all_values == FALSE
,getSolutionAttributes
returns adata.frame
containing constraints data and their associated attributes.If
all_values == TRUE
,getSolutionAttributes
returns alist
containing attributes associated to each constraint.
Examples
item_idx <-
c( 29, 33, 26, 36, 34,
295, 289, 296, 291, 126,
133, 124, 134, 129, 38,
47, 39, 41, 46, 45,
167, 166, 170, 168, 113,
116, 119, 117, 118, 114)
getSolutionAttributes(constraints_reading, item_idx, FALSE)
getSolutionAttributes(constraints_reading, item_idx, TRUE)