# check SpatialPointsDataFrame
is.spdf <- function(x) {
inherits(x, "SpatialPoints")
}
# check identical CRS
same.crs <- function(x,y) {
identical(x@proj4string, y@proj4string)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.