FRBCesab / funbiogeo

:package: R package to help with analyses in functional biogeography
https://frbcesab.github.io/funbiogeo/
GNU General Public License v2.0
10 stars 1 forks source link

Be explicit when computing coverage using all traits #66

Closed Rekyt closed 1 year ago

Rekyt commented 2 years ago

Several function compute trait coverage across all traits taken together. (like https://frbcesab.github.io/funbiogeo/reference/fb_map_site_traits_completeness.html)

This should be explicit from a documentation point of view. And maybe should be optional?

ahasverus commented 2 years ago

I think it can be optional. But I would use instead the argument by_trait = TRUE to compute coverage at the trait level. If this argument is FALSE, then only the coverage over all traits is computed.

Rekyt commented 1 year ago

Concerned functions:

Rekyt commented 1 year ago

For all these functions we could instead have an argument all_traits = TRUE/FALSE to control the behavior of considering all traits together. By default, all_traits = TRUE.