Skip to content

Instantly share code, notes, and snippets.

@bmpvieira
Last active August 29, 2015 14:08
Show Gist options
  • Save bmpvieira/92a3caff266ba1dc1863 to your computer and use it in GitHub Desktop.
Save bmpvieira/92a3caff266ba1dc1863 to your computer and use it in GitHub Desktop.
getCoordinates <- function(genus) {
table1 <- read.csv('http://bmpvieira.github.io/temp/alabamaants-myrmicinaepheidole_obscurithorax.csv', h=T)
table2 <- read.csv('http://bmpvieira.github.io/temp/allantwebants-myrmicinaesolenopsis_invicta.csv', h=T)
mergedtable <- # put code here to merge table1 and table2
# Once you have the merged table:
# 1. Subset the table to a new one with only the rows that match the Genus provided by the argument of the function
# 2. Limit the new one to only the columns DateCollectedStart, LocLatitude and LocLongitude.
# 3. Remove rows that have NA values
# 4. return the resulting table
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment