Take a random sample of file streams in the dataset approximately by the probability specified.

take_sample_from_dataset(dataset, probability, seed = NULL)

Arguments

dataset

The Dataset object.

probability

The probability of a file stream being included in the sample.

seed

An optional seed to use for the random generator.

Value

A new Dataset object representing the sampled dataset.