eastLim = c(-110.6405, 832.4544)
northLim = c(-555.1739, 608.7130)
coordMatrixEN = cbind(eastLim, northLim)
coordMatrixLL = projKenya(coordMatrixEN, inverse=TRUE)
coordMatrixLL
# if the coordMatrixLL isn't the following, projKenya may not support
# your installation of GDAL and/or PROJ:
# east north
# [1,] 33.5 -5.0
# [2,] 42.0 5.5
projKenya(coordMatrixLL, inverse=FALSE)
# regardless of your PROJ/GDAL installations, the result of the
# above line of could should be:
# lon lat
# [1,] -110.6405 -555.1739
# [2,] 832.4544 608.7130
Run the code above in your browser using DataLab