R/sdraw.SpatialPoints.r

Defines functions sdraw.SpatialPoints

Documented in sdraw.SpatialPoints

#' @rdname sdraw
#'  
#' @name sdraw
#' 
#' @method sdraw SpatialPoints
#'  
#' @aliases sdraw,SpatialPoints-method

sdraw.SpatialPoints <- function(x, n, type, ...){
  
  ans <- switch(type,
                HIP = hip.point( x, n, ...), 
                BAS = bas.point( x, n ), 
                GRTS = grts.point( x, n, ...),
                SSS = sss.point( x, n, ...),
                SRS = srs.point( x, n, ...),
                stop(paste("Invalid SpatialPoint sample type =", type))
  )
  
  ans
  
}

Try the SDraw package in your browser

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

SDraw documentation built on July 8, 2020, 6:23 p.m.