Title
Arguments
- df
Dataframe with
taxa_col
andatt_col
- taxa_col
Character name of column in
df
that was passed toget_taxonomy
astaxa_col
- att_col
Character name of column in
df
that contains the attribute to summarise- taxonomy
List resulting from call to
make_taxonomy()
- max_guess
Character. If attribute is not available for
taxa
, try guessing from values up tomax_guess
level of taxonomic hierarchy. Seelurank
. Note it does not make sense to provide a rank here that is lower than thetarget_rank
provided tomake_taxonomy
whentaxonomy
was made.- agg_method
Function name to use for summarising numeric
att_col
. Ignored ifatt_col
is not numeric- agg_round
Passed to
base::round()
round argument. Used if summarising numericatt_col
.- unknown_action
When no other value can be found/guessed: either default 'remove' (no record returned); or provide a value to be used. Only used for character
att_col
- context
Any other columns in
df
to maintain throughout summarising.- remove_strings
Character. Any values in
att_col
to exclude- ...
Passed to
agg_method