R/background.shape.buffer.R

Defines functions background.shape.buffer

Documented in background.shape.buffer

#' Takes a set of points and a buffer radius, and returns
#' a polygon.
#' Code modified from Elith and Hijmans SDM with R tutorial
#'
#' NOTE: This function has been replaced by background.buffer.
#'
#' @param points A two column data frame with X and Y coordinates
#' @param radius Radius for circular buffers to draw around points, in meters.
#'
#' @return A polygon shapefile.


background.shape.buffer <- function(points, radius){

  return(background.buffer(points = points, buffer.width = radius,
                           buffer.type = "circles", mask = NA, return.type = "polygon"))
}

Try the ENMTools package in your browser

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

ENMTools documentation built on April 11, 2023, 6:09 p.m.