ropensci-archive / binomen Goto Github PK
View Code? Open in Web Editor NEW:no_entry: ARCHIVED :no_entry: 'Taxonomic' Specification and Parsing Methods
Home Page: https://docs.ropensci.org/binomen
License: Other
:no_entry: ARCHIVED :no_entry: 'Taxonomic' Specification and Parsing Methods
Home Page: https://docs.ropensci.org/binomen
License: Other
Fxn started, but not working yet:
XML
pkg, maybe just stick with jsonldIn addition to on taxondf
and taxon
objects
Hi @sckott, you asked for my thoughts on binomen on issue #9 and I thought a new issue might be a better place to respond.
I like the package overall. It has a clean and straight forward style that I think biologists will like.
Below is a list of intermixed comments, suggestions, and potential bugs.
none
is printed. How about printing this as sp.
?none
is printed twice in the species
field of the binomial
. Is this supposed to happen?> obj <- make_taxon(genus="Poa", family='Poaceae')
> obj$binomial
<binomial>
genus: Poa
epithet: none
canonical: Poa none
species: Poa none none
authority: none
span
it would be nice to be able to leave off one end of the range (e.g. df2 %>% span(family, NA)
or df2 %>% span(family, )
), meaning that all ranks above/below the specified rank are included.taxon
, but not when making a taxondf
. This can cause an error when trying to convert taxondf
to taxa
:> df <- data.frame(order = c('Asterales','Asterales','Fagales','Poales','Poales','Poales'),
+ family = c('Asteraceae',NA,'Fagaceae','Poaceae','Poaceae','Poaceae'),
+ genus = c('Helianthus', NA,'Quercus','Poa','Festuca','Holodiscus'),
+ stringsAsFactors = FALSE)
> df2 <- taxon_df(df)
> scatter(df2)
Error in if (genus == "none") stop("You must supply at least genus") :
missing value where TRUE/FALSE needed
We have span
, e.g., df2 %>% span(order, genus)
and takes two rank names to get range of data from
Would be nice to allow searches like
obj %>% select( > family)
obj %>% select( < genus)
obj %>% select( != tribe)
obj %>% select( == tribe)
though this would already work with dplyr
for data.frame's but not on taxon/etc. objects of course...hmmmm
Minor question. There are multiple occurrences of clazz
in the README.md
. Should this be "class", or are you trying to avoid using the reserved word "class"?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.