R/listw.explore.R

#' Interactive tool to generate R code that creates a spatial weighting matrix
#' 
#' @export listw.explore
#' @importFrom shiny runApp
#' @author Stéphane Dray \email{stephane.dray@@univ-lyon1.fr}
#' @seealso \code{\link{chooseCN}}
#' @returns No return value
#' @examples
#' if(interactive()){
#' ## a matrix or an object of class 'Spatial*' should be in the global environment
#' xy <- matrix(rnorm(50), 25)
#' listw.explore()
#' }
listw.explore <- function (){
    runApp(system.file('listw.explore', package = 'adespatial'))
}

Try the adespatial package in your browser

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

adespatial documentation built on Sept. 11, 2024, 7:04 p.m.