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)
}
r-gris/tabularaster documentation built on June 7, 2019, 8:51 a.m.