optME.RdComputes optimal category orders for each dimension separately. Uses a TSP solver to achieve the best ME value.
optME(x, dims = NULL, nstart = 1, solver = "nearest_insertion", return.table = TRUE, adjust.dist = FALSE)
| x | A matrix, table or array. |
|---|---|
| dims | Which dimensions to reorder. The dimensions are reordered independently. |
| nstart | The number of different starting points for the TSP solver. If |
| solver | Should be one of |
| return.table | Whether or not to return the optimized table. If |
| adjust.dist | If |
Each dimension is optimized separately via a TSP solver.
The passed object as a table with optimized category orders.
#> [1] 46222#> [1] 97428