#' Function to find class of spatial object as a vector with a length of 1.
#'
#' @param sp Spatial object.
#'
#' @author Stuart K. Grange
#'
#' @export
sp_class <- function(sp) class(sp)[1]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.