davidclarance / rabm

The `rabm` package provides an interface to the Africa Bird Atlas data.
https://davidclarance.github.io/rabm/
3 stars 1 forks source link

Spatial function #19

Closed Rafnuss closed 4 years ago

Rafnuss commented 4 years ago

Provide three new functions related to spatial ability:

Note that I'm not using any pre-existing pentads (e.g. geojson file) but I'm using the name convention.

The symbole between lat and lon is determined with :

    if (lat < 0 & lon > 0){
      letter <- '_'
    } else if (lat < 0 & lon < 0) {
      letter <- 'a'
    } else if (lat > 0  & lon < 0) {
      letter <- 'b'
    } else if (lat > 0 & lon > 0) {
      letter <- 'c'

I don't know what happen if lon >99 and therefore the functions are not implemented for this yet.

davidclarance commented 4 years ago

Excellent work @Rafnuss !

Rafnuss commented 4 years ago

Thanks! I found several bug with this set of functions. Happy to submit the corrected version if implmented.