aggregate_records | R Documentation |
Aggregate database records according to different criteria
aggregate_records(x, ...)
x |
A record set |
... |
A set of database field names used in the aggregation process |
The default result is a three column dataframe where each row is
a tuple of the form (n, p, q), where n is a snake species, p is a prey group,
and q = min(predator_count, prey_count). In other words, each row is the
minimum number of instances of prey group p recorded in the diet of snake
taxon n. Additional database fields specified via ...
augment this
row tuple with more information. For example, passing "locality_adm0_name"
through ...
would yield tuples of the form (n, p, r, q), and the
interpretation becomes the minimum number of instances of prey group p
recorded in the diet of snake taxon n in country r.
A dataframe summarizing counts of prey items in snake diet samples. See details for how summarization takes place.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.