funecology / fundiversity

📦 R package to compute functional diversity indices efficiently
https://funecology.github.io/fundiversity/
GNU General Public License v3.0
30 stars 3 forks source link

Add tip in error message because of non-continuous traits #60

Open Rekyt opened 1 year ago

Rekyt commented 1 year ago

It's the second person that contacts me because of the non-continuous trait error message:

https://github.com/funecology/fundiversity/blob/0a58ab61c400fc732a2e1fda17686abe278b01e7/R/fd_fric.R#L65-L68

Maybe we should point people to multivariate analyses to get back continuous traits. Like adding a line "If you want to use non-numeric traits with fundiversity, you have to transform them to obtain numerical traits beforehand (e.g., through a PCoA or similar techniques)"

It would probably be too specific, but at least would point user to ways to overcome the issue themselves.

Bisaloo commented 1 year ago

For this kind of situation, instead of creating super long error messages, especially with potentially subjective information, I like to create a FAQ vignette.