Turns a tidy assignment result back into a 0/1 assignment matrix.
Usage
as_assignment_matrix(x, n_sources = NULL, n_targets = NULL)
Arguments
- x
An assignment result object of class lap_solve_result
- n_sources
Number of source nodes, optional
- n_targets
Number of target nodes, optional
Value
Integer matrix with 0 and 1 entries