Skip to content

Commit

Permalink
attempt with zenodo
Browse files Browse the repository at this point in the history
  • Loading branch information
wcornwell committed Oct 25, 2015
1 parent 2a2cf17 commit a016e63
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: taxonlookup
Title: A dynamically-updating versioned taxonomic resource for vascular plants
Version: 0.3.1
Version: 0.3.2
Date: 2015-08-03
Description: This is a taxon lookup table for land plants. It is built from a set of scripts that dynamically build a versioned genus-family-order-higher taxa lookup table from canonical sources on the web. It uses semantic versioning to keep track of changes.
Depends: R (>= 3.1.0)
Expand Down
1 change: 1 addition & 0 deletions R/plant_lookup.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

##' Lookup table relating plant genera, families and orders along with
##' number of species in each genus. Data persists across package
##' installations.
Expand Down
Binary file modified R/sysdata.rda
Binary file not shown.
1 change: 1 addition & 0 deletions createlookup.R
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ matchPlantListFamiliesToApweb<-function(tplGenera){
tplGenera$apweb.family<-tplGenera$family
badFamilies<-unique(tplGenera$apweb.family[!tplGenera$apweb.family%in%apFamilies$acceptedFamilies&tplGenera$group!="Bryophytes"&tplGenera$apweb.family%in%apFamilies$family])
tplGenera$apweb.family[tplGenera$apweb.family%in%badFamilies]<-apFamilies$synonym[match(tplGenera$apweb.family,apFamilies$family)][tplGenera$apweb.family%in%badFamilies]
tplGenera$apweb.family[tplGenera$apweb.family=="Compositae"]<-"Asteraceae"
return(tplGenera)
}

Expand Down
3 changes: 2 additions & 1 deletion man/lookup_table.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ with one row per species and with species as row names.}
Build a lookup table for a set of species, connecting the species names to plant genera, families and orders
}
\details{
##' The data within this lookup table comes from two sources:
The data within this lookup table comes from two sources:

1. The Plant List v1.1. (http://www.theplantlist.org/) for
accepted genera to families and species richness within each
Expand All @@ -52,6 +52,7 @@ lookup_table("Pinus ponderosa")
#
#
# control how you want the function to handle non-matches
#
lookup_table(c("Pinus ponderosa","Neitheragenus noraspecies"))
#
lookup_table(c("Pinus ponderosa","Neitheragenus noraspecies"),missing_action="NA")
Expand Down

0 comments on commit a016e63

Please sign in to comment.