Find the dominant waters type in a group of samples, if there are more than
n samples. Match HCO3 and HCO3* types. Considered dominant types if in >p
of samples.
Arguments
- d
Data frame with
water_typecolumn (e.g., output ofrems_to_aquachem())- n
Numeric. Number of samples above which to remove outliers.
- p
Numeric. Proportion of data required to assign a dominant water type.