#' Rhabit to raster
#'
#' Transform a (x,y,z) list, as used in Rhabit, into a raster object
#'
#' @param r List of three elements: x (grid of x values), y (grid of y values),
#' and z (matrix of values)
#'
#' @return Raster object
#'
#' @export
rhabitToRaster <- function(r) {
raster::rasterFromXYZ(rasterToDataFrame(r))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.