From b8cc1acc3a0b4e5c0fc28cffa76ba829deb76cbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Greni=C3=A9?= Date: Tue, 9 Apr 2024 07:28:14 +0200 Subject: [PATCH] Fixes #109 --- R/fb_plot_species_traits_completeness.R | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/R/fb_plot_species_traits_completeness.R b/R/fb_plot_species_traits_completeness.R index 0146225e..e60b88ff 100644 --- a/R/fb_plot_species_traits_completeness.R +++ b/R/fb_plot_species_traits_completeness.R @@ -148,7 +148,8 @@ fb_plot_species_traits_completeness <- function( # Add column for value species_traits_long_categories$has_trait <- ifelse( - !is.na(species_traits_long_categories$trait_value), TRUE, FALSE + !is.na(species_traits_long_categories$trait_value) & + !(species_traits_long_categories$trait_value == "NaN"), TRUE, FALSE ) # Merge all datasets before plotting