Count distinct values
Returns the number of distinct values in a vector or list. Inside
summarize(), this acts as an aggregation expression.
Vector): | List The input
values.The number of distinct values.
summarize(df, $unique_species = n_distinct($species))