refdb_sample_tax {refdb} | R Documentation |
Sample records within taxa
Description
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.
Usage
refdb_sample_tax(x, n_max = 10, cols = NULL)
Arguments
x |
a reference database. |
n_max |
maximum number of records to keep for each taxa. |
cols |
an optional vector of column names.
If |
Value
A reference database.
[Package refdb version 0.1.1 Index]