library("funbiogeo")
trait_df = data.frame(
species = letters[1:3],
quanti_trait = 1:3
)
# Doesn't work
fb_plot_species_traits_completeness(trait_df)
#> Error in apply(species_traits[, -1], 1, function(x) sum(!is.na(x))): dim(X) doit avoir un longueur positive
Reprex:
Created on 2023-02-24 with reprex v2.0.2