datasets.Samples elements at random from the datasets in datasets.
sample_from_datasets(datasets, weights = NULL, seed = NULL)A list ofobjects with compatible structure.
(Optional.) A list of length(datasets) floating-point values where
weights[[i]] represents the probability with which an element should be sampled
from datasets[[i]], or a dataset object where each element is such a list.
Defaults to a uniform distribution across datasets.
(Optional.) An integer, representing the random seed that will be used to create the distribution.
A dataset that interleaves elements from datasets at random, according to
weights if provided, otherwise with uniform probability.