Extract relevant parameters from a generic shuffle function output
Any shuffling function should return one of the following:
extract_shuffle_params(shuffle, attributes_expected)
shuffle
: Return value of a shuffle functionattributes_expected
: Logical; if TRUE, sample attributes are expected from the shuffling result and the function dies if they are not provided.A list with components src, dst, location_assignment and samples_attr, depending on the output of the specific shuffling function
This function parses the output, performs a few checks and returns results in a simple-to-use list.
Useful links