occurrence) and a
RasterStack object containing raster layers of the four admin levels, extract GAUL codes for polygon records.
SpatialPointsDataFrame identical to
occurrence, with an additional column
GAUL giving the GAUL codes for the polygons and
NA for points.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
# load the occurrence and admin example objects data(occurrence) data(admin) # convert occurrence into an SPDF occurrence <- occurrence2SPDF(occurrence) # look at occurrence head(occurrence) # note the order of admin names(admin) # extract GAUL codes occurrence <- getGAUL(occurrence, admin) # the GAUL colun has been added head(occurrence) tail(occurrence)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.