Nothing
#' @title idfcode
#' @description This function allows you to convert the location to 4 digital code
#' @param lon Input the longitude.
#' @param lat Input the latitude.
#' @export
#' @import sf
#' @import spData
#' @examples
#' idfcode(22,-5)
idfcode<-function(lon,lat){
lon<-ifelse(lon==-180,-179,lon)
lon<-ifelse(lon==180,179,lon)
a1<-ifelse(lat>=0,(trunc(abs(lat)/5)+1)*2+71,(trunc(abs(lat)/5)+1)*2+72)
a2<-ifelse(lon<0,trunc(abs(lon)/5)*2+1,trunc(abs(lon)/5)*2+2)
farea<-a1*100+a2
return(farea)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.