bmaitner / RBIEN

Tools for accessing the Botanical Information and Ecology Network (BIEN) database
http://bien.nceas.ucsb.edu/bien/
Other
43 stars 10 forks source link

Error in an observation of whole plant vegetative phenology #28

Open Rekyt opened 2 years ago

Rekyt commented 2 years ago

While playing around with publicly available BIEN traits I found an error in one observation of the trait "whole plant vegetative phenology" here is the reprex:

library("dplyr")
#> 
#> Attachement du package : 'dplyr'
#> Les objets suivants sont masqués depuis 'package:stats':
#> 
#>     filter, lag
#> Les objets suivants sont masqués depuis 'package:base':
#> 
#>     intersect, setdiff, setequal, union

# Weird value 'evergreenergreen'
BIEN::BIEN_trait_trait("whole plant vegetative phenology") %>%
  count(trait_value)
#>                       trait_value    n
#> 1                       deciduous 1244
#> 2                       evergreen 5419
#> 3                evergreenergreen    1
#> 4 variable or conflicting reports   42

# Precise record with this issue
BIEN:::.BIEN_sql(
  "SELECT scrubbed_species_binomial, trait_name, trait_value, id FROM agg_traits
  WHERE trait_name='whole plant vegetative phenology' AND id='3900233'")
#>   scrubbed_species_binomial                       trait_name      trait_value
#> 1         Pinus douglasiana whole plant vegetative phenology evergreenergreen
#>        id
#> 1 3900233

Created on 2021-11-24 by the reprex package (v2.0.1)

Maybe you can correct this in a future BIEN release ;)