I´m trying to load data from the botanical database BIEN in R. Now I´m facing a problem, because it seems that there is no data loaded for the three species "Abies borisii-regis", "Abies equi-trojani" and "Abies bornmuelleriana". I guess that the names of the species causes the problem, since the code works for other species whose names don´t include characters like " - ". I use the following code:
library(BIEN)
occ <- BIEN_occurrence_species(species = c("Abies borisii-regis"),
cultivated = FALSE,
natives.only = TRUE,
collection.info = FALSE,
all.taxonomy = TRUE)
ccdf <- data.frame(species = occ$scrubbed_species_binomial, # ccdf = clean coordinate data frame
decimalLongitude = occ$longitude,
decimalLatitude = occ$latitude,
dataset = "BIEN")
and receive this error message:
Error in data.frame(species = occ$scrubbed_species_binomial, decimalLongitude = occ$longitude, :
Arguments imply different number of rows: 0, 1
(The german original is:)
Fehler in data.frame(species = occ$scrubbed_species_binomial, decimalLongitude = occ$longitude, :
Argumente implizieren unterschiedliche Anzahl Zeilen: 0, 1
I already tried to make sure that I´m using the correct species name, by checking the names with TNRS (Taxonomic Name Resolution Service). Based on this, the correct names seem to be "Abies x borisii-regis" and "Abies nordmanniana subsp. equi-trojani", but the I still receive the error message.
Does anyone know how to fix this so that I can get the data? Or does anyone know if I have to type in the characters "-" and "x" from the species names in a different way, so that R recognizes them correctly?
BIENdoes provide an approach to assess whether other researchers have uploaded data regarding one's species of interestIs there data like your data
which seems to suggest that other researchers have yet to upload data related to two your species of interest, though you might decide to. And
BIENfacilitates that process.In this instance you appear to be the first researcher to potentially provide data for "Abies equi-trojani" and "Abies bornmuelleriana", while you can both find and share data for "Abies borisii-regis".
It seemed more convenient to split, data.frame, then search. Moving on to attempting to query
there are some, very few. A straight request, i.e. BIEN_occurrence_species("Abies borisii-regis") returns, but empty. The options then are a kind of bewildering 'truth' table to explore to see if something other than empty might be returned. Compare,
only.geovalid=TRUE vs FALSEBy twiddling around with the default TRUE/FALSE, we've managed to surface 4 records, and judging by results of only.geovalid, none as yet are. The defaults
And further
Ignore what I said about only.geovalid, there appear to be some records with longitude and latitude, but setting to FALSE is the only way to get to them? Truth tables are tough sledding.