This function can be useful to keep a maximum of records per taxa. This function require dplyr dev version to work because of slice_sample. Will be exported once available.
refdb_sample_tax(x, n_max = 10, cols = NULL)A reference database.
a reference database.
maximum number of records to keep for each taxa.
an optional vector of column names.
If NULL (default), the function is applied to the columns
associated with the taxonomy field.