Mainly for internal use. Changes the data associated with a task, without modifying other task properties.
changeData(task, data, costs, weights, coordinates)
(Task)
The task.
(data.frame)
The new data to associate with the task. The names and types of the feature columns must match with the old data.
([data.frame`
Optional: cost matrix.
(numeric)
Optional: weight vector.