# NOT RUN {
guerry_path <- system.file("extdata", "Guerry.shp", package = "rgeoda")
guerry <- geoda_open(guerry_path)
queen_w <- queen_weights(guerry)
guerry_df <- as.data.frame(guerry) # use as data.frame
crm_prs <- guerry_df['Crm_prs'][,1]
lisa <- local_quantilelisa(queen_w, k=4, q=1, crm_prs)
clsts <- lisa_clusters(lisa)
clsts
# }
Run the code above in your browser using DataLab