Last active
August 29, 2015 14:08
-
-
Save bmpvieira/92a3caff266ba1dc1863 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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