The csquare code is explained here: http://www.cmar.csiro.au/csquares/csq-faq.htm
csquare_from_dd(lat, lon, resolution = 1e-04)a character string with the code
csquare_from_dd(50.93578, -114.01435, resolution = 0.00001)
#> [1] "7511:104:390:131:354:373:485"