Comparison to spdep and pysal

knitr::opts_chunk$set(
  collapse = TRUE,
  echo = FALSE,
  comment = "#>"
)
library(magrittr)
fp <- system.file("extdata", "lookups.yml", package = "sfdep")
df <- yaml::read_yaml(fp, error.label = "")

Global Statistics

Measures of global spatial autocorrelation.

tibble::enframe(df$global_stats) %>% 
  tidyr::unnest_wider(value) %>% 
  dplyr::mutate(pysal = ifelse(is.na(pysal), "", pysal)) %>%
  knitr::kable()

Local Indicators of Spatial Association

Measures of local spatial autocorrelation.

df$lisas %>% 
  tibble::enframe() %>% 
  tidyr::unnest_wider(value) %>% 
  dplyr::mutate(pysal = purrr::map_chr(pysal, ~stringr::str_c(.x, collapse = ", "))) %>% 
  knitr::kable()

Not implemented

Functions present in Pysal that are not implemented in sfdep.

df[["not implemented"]] %>% 
  tibble::as_tibble() %>% 
  dplyr::rename(`function` = value) %>% 
  knitr::kable()


Try the sfdep package in your browser

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

sfdep documentation built on Aug. 15, 2022, 5:09 p.m.