R/outline.buffer.R

Defines functions outline.buffer

Documented in outline.buffer

outline.buffer <- function(buffer) {
  if (!is(buffer,'bathy')) stop("'buffer' must be a buffer of class bathy")
  buffer[!is.na(buffer)] <- -1
  buffer[is.na(buffer)] <- 0
  return(buffer)
}

Try the marmap package in your browser

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

marmap documentation built on March 31, 2023, 6:59 p.m.