R/isopleths.R

#' Retrives the isopleths of an rhrHREstimator object
#' 
#' @param x an object of class rhrHREstimator
#' @param ... further arguments, none implemented
#' @export
#' @return SpatialPolygonsDataFrame

isopleths <- function(x, ...) {
  UseMethod("isopleths", x)
}


#' get the isopleths from rhrHREstimator
#' 
#' @param x an object of class rhrHREstimator
#' @param ... further arguments, none implemented
#' @export
#' @method isopleths RhrHREstimator

isopleths.RhrHREstimator <- function(x, ...) {
    return(x$results$isopleths)
}

Try the rhr package in your browser

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

rhr documentation built on May 2, 2019, 6:06 p.m.