R code:
GBIF cleaning R v3.6.3 and code is shared via https://github.com/qiaohj/iucn_fix.
Species ranges and boundary density maps R code https://github.com/qiaohj/iucn_fix/blob/master/line2raster_X.r
(replace X with amphibian, birds, mammals, odonates, reptiles