Right now using gh_covering only stores geohash names as the rownames attribute. In practice, I find that everytime I use gh_covering, I follow it up like this:
gh_covering(spatial_object, precision = 4) %>%
mutate(gh = rownames(.))
Three possible solutions:
- Currently the
ID variable returns a numeric index. Can replace this with the geohash name as ID as default behaviour
- Keep the
ID variable and add a gh variable with the name as default behaviour
- Do 1/2 if specified with an argument, e.g.
labelled = TRUE in the function call
Right now using
gh_coveringonly stores geohash names as the rownames attribute. In practice, I find that everytime I usegh_covering, I follow it up like this:Three possible solutions:
IDvariable returns a numeric index. Can replace this with the geohash name as ID as default behaviourIDvariable and add aghvariable with the name as default behaviourlabelled = TRUEin the function call