powered by
keepmainfields(dat, ID = "", Species = "", x = "", y = "", others = "")
names(gbifdat) dat3 <- keepmainfields(gbifdat, Species='species', x='decimallongitude', y='decimallatitude')
Run the code above in your browser using DataLab