extract_shuffle_params | R Documentation |
Any shuffling function should return one of the following:
atomic index vector for a direct location assignment
a list with src and dst vector
a list with locations vector (for location assignment) and optional sample_attr data frame/tibble
extract_shuffle_params(shuffle, attributes_expected)
shuffle |
Return value of a shuffle function |
attributes_expected |
Logical; if TRUE, sample attributes are expected from the shuffling result and the function dies if they are not provided. |
This function parses the output, performs a few checks and returns results in a simple-to-use list.
A list with components src, dst, location_assignment and samples_attr, depending on the output of the specific shuffling function
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.