Returns a sample of the specified size from the values of track expression.
gsample(expr = NULL, n = NULL, intervals = NULL, iterator = NULL, band = NULL)
An array that represent quantiles.
This function returns a sample of the specified size from the values of track expression. If 'n' is less than the total number of values, the data is randomly sampled. The seed of the pseudo-random generator can be controlled through 'grnd.seed' option.
If 'n' is higher than the total number of values, all values are returned (yet reshuffled).
gdb.init_examples()
gsample("sparse_track", 10)
#> [1] 0.44 0.40 0.36 0.44 0.36 0.36 0.36 0.44 0.40 0.46