R/buffer_extent.r

#' Defunct tabularaster function 
#'
#' Ensure a raster extent aligns to whole parts.
#' 
#' This function is defunct, please use `spex::buffer_extent`. 
#' @param e1 input \code{\link[raster]{extent}}
#' @param e2 grain size
#' @examples
#' library(spex)
#' library(raster)
#' buffer_extent(extent(0.1, 2.2, 0, 3), 2)
#' @importFrom spex buffer_extent spex
bufext <- function(e1, e2) {
  .Defunct(new = "buffer_extent", package = "spex")
  spex::buffer_extent(e1, e2)
}

Try the tabularaster package in your browser

Any scripts or data that you put into this service are public.

tabularaster documentation built on May 2, 2019, 7:02 a.m.