Skip to content

Commit

Permalink
added data folder with Darwin Core names
Browse files Browse the repository at this point in the history
  • Loading branch information
sckott committed Sep 10, 2011
1 parent d5f2f96 commit f47a23e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
1 change: 1 addition & 0 deletions Data/darwincorenames.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
name,short_nameacceptednameusage,anuacceptednameusageid,anuidaccessrights,arassociatedmedia,amassociatedoccurrences,aoassociatedreferences,arassociatedsequences,asassociatedtaxa,atbasisofrecord,brbed,bdbehavior,bbibliographiccitation,bccatalognumber,catclass,clcollectioncode,cccollectionid,cidcontinent,ctcoordinateprecision,cpcoordinateuncertaintyinmeters,cucountry,cncountrycode,cnccounty,codatageneralizations,dgdatasetid,diddatasetname,dndateidentified,diday,ddecimallatitude,dlatdecimallongitude,dlngdisposition,dspdynamicproperties,dpearliestageorloweststage,eageearliesteonorlowesteonothem,eeonearliestepochorlowestseries,eepearliesteraorlowesterathem,eeraearliestperiodorlowestsystem,ependdayofyear,edyestablishmentmeans,emeventdate,edeventid,eideventremarks,ereventtime,etfamily,fmfieldnotes,fntfieldnumber,fnmfootprintspatialfit,fpsffootprintsrs,fpsfootprintwkt,fpformation,frmgenus,ggeodeticdatum,gdgeologicalcontextid,gidgeoreferencedby,gbgeoreferenceprotocol,gpgeoreferenceremarks,grgeoreferencesources,gsgeoreferenceverificationstatus,gvsgroup,grphabitat,hhigherclassification,hchighergeography,hghighergeographyid,hgidhighestbiostratigraphiczone,hbzidentificationid,idididentificationqualifier,iqidentificationreferences,irfidentificationremarks,irmidentifiedby,ibindividualcount,icindividualid,indidinformationwithheld,iwinfraspecificepithet,iseinstitutioncode,icinstitutionid,iidisland,iislandgroup,igkingdom,klanguage,lnlatestageorhigheststage,lagelatesteonorhighesteonothem,leonlatestepochorhighestseries,leplatesteraorhighesterathem,leralatestperiodorhighestsystem,lplifestage,lslithostratigraphicterms,ltlocality,llocationaccordingto,lcatlocationid,lidlocationremarks,lrlowestbiostratigraphiczone,lbzmaximumdepthinmeters,mxdmaximumdistanceabovesurfaceinmeters,mxamaximumelevationinmeters,mxemember,memminimumdepthinmeters,mndminimumdistanceabovesurfaceinmeters,mnaminimumelevationinmeters,mnemodified,mdmonth,mmunicipality,mnnameaccordingto,natnameaccordingtoid,natidnamepublishedin,npnamepublishedinid,npidnomenclaturalcode,ncnomenclaturalstatus,nsoccurrencedetails,odoccurrenceid,oidoccurrenceremarks,oroccurrencestatus,osorder,ordoriginalnameusage,onuoriginalnameusageid,onuidothercatalognumbers,ocnownerinstitutioncode,oicparentnameusage,pnuparentnameusageid,pnuidphylum,phpointradiusspatialfit,prsfpreparations,ppreviousidentifications,pirecordedby,rbrecordnumber,rnreproductivecondition,rcrights,rrightsholder,rhsamplingeffort,smesamplingprotocol,smpscientificname,snscientificnameauthorship,snascientificnameid,sidsex,sxspecificepithet,sestartdayofyear,sdystateprovince,spsubgenus,sgtaxonconceptid,tcidtaxonid,tidtaxonomicstatus,tstaxonrank,trtaxonremarks,trmtype,ttypestatus,tsverbatimcoordinates,vcverbatimcoordinatesystem,vcsverbatimdepth,vdverbatimelevation,veverbatimeventdate,vedverbatimlatitude,vlatverbatimlocality,vlverbatimlongitude,vlngverbatimsrs,vsverbatimtaxonrank,vtrvernacularname,vnwaterbody,wyear,y
Expand Down
7 changes: 7 additions & 0 deletions Data/dcnames.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# darwincorenames.R
# Reads in the data so that it can be loaded with data()
dcnames <- function() {
read.csv("darwincorenames.csv")
}

# E.g., dcnames()
9 changes: 5 additions & 4 deletions R/vertsearch.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
vertsearch <-
# Args:
# cl: taxonomic search term (character)
# sp: state (character)
# sp: state or province (character)
# limit: search return limit (numeric)
# Examples:
# vertsearch("aves", "california", 1)
# vertsearch("aves", "california", 10)
# Returns:
# dataframe of search results OR prints "no search match" if no matches

Expand All @@ -26,8 +26,9 @@ function(cl = NA, sp = NA, limit = NA,
.params = args,
...,
curl = curl)
# out <- fromJSON(I(temp))
return(temp)
out <- fromJSON(I(temp))
dfout <- ldply(out$records, function(x) as.data.frame(x))
return(dfout)
}

# http://canary.vert-net.appspot.com/api/search?cl=aves&sp=california&limit=1

0 comments on commit f47a23e

Please sign in to comment.