OSGB | R Documentation |
Convert coordinates to the grid reference system used by the Ordnance Survey for Great Britain. Or do the inverse operation to get coordinates for a grid code.
OSGB(xy, precision, geo=FALSE, inverse=FALSE)
xy |
x coordinate pairs (vector, matrix, data.frame |
; or grid codes if inverse=TRUE
.
precision |
character. One of "1m", "5m", "10m", "50m", "100m", "500m", "1km", "5km", "10km", "50km", "100km", "500km" |
geo |
If |
inverse |
If |
character
pnts <- rbind(cbind(93555 , 256188),
cbind(210637, 349798),
cbind(696457, 481704))
g <- OSGB(pnts, "1km", geo=FALSE)
g
OSGB(g, inverse=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.