-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Description
Taxonomic coverage can be provided as a data frame where each column is a rank. Common is also considered a rank (https://docs.ropensci.org/EML/reference/set_coverage.html#note):
library(EML)
df <- data.frame(Class = "Aves", Species = "Anas platyrhynchos", Common = "mallard")
coverage <- set_coverage(sci_names = df)
str(coverage$taxonomicCoverage)
#> List of 1
#> $ taxonomicClassification:List of 1
#> ..$ :List of 3
#> .. ..$ taxonRankName : chr "Class"
#> .. ..$ taxonRankValue : chr "Aves"
#> .. ..$ taxonomicClassification:List of 3
#> .. .. ..$ taxonRankName : chr "Species"
#> .. .. ..$ taxonRankValue : chr "Anas platyrhynchos"
#> .. .. ..$ taxonomicClassification:List of 2
#> .. .. .. ..$ taxonRankName : chr "Common"
#> .. .. .. ..$ taxonRankValue: chr "mallard"Created on 2022-06-03 by the reprex package (v2.0.1)
GBIF IPT handles Common names in a separate property:
<taxonomicClassification>
<taxonRankName>species</taxonRankName>
<taxonRankValue>Anas platyrhynchos</taxonRankValue>
<commonName>mallard</commonName>
</taxonomicClassification>I'm not sure is that is according to EML specs, but if so, would it be possible for set_coverage() to treat Common the same way?
Metadata
Metadata
Assignees
Labels
No labels