Learn R Programming

rgeoda (version 0.0.6)

lisa_values: Get LISA values

Description

Get the local spatial autocorrelation values returned from LISA computation

Usage

lisa_values(gda_lisa)

Arguments

gda_lisa

An instance of LISA object

Value

A numeric vector of local spatial autocorrelation

Examples

Run this code
# NOT RUN {
guerry_path <- system.file("extdata", "Guerry.shp", package = "rgeoda")
guerry <- geoda_open(guerry_path)
guerry_df <- as.data.frame(guerry) # use as data.frame
crm_prs <- guerry_df['Crm_prs'][,1] # get values of variable "crm_prs"
lisa <- local_moran(queen_w, crm_prs)
lms <- lisa_values(lisa)
lms
# }

Run the code above in your browser using DataLab