Skip to content

Commit

Permalink
Fixes #109
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Grenié committed Apr 9, 2024
1 parent 497d97a commit b8cc1ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/fb_plot_species_traits_completeness.R
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b8cc1ac

Please sign in to comment.