Skip to content

nnspat

0.1.2Package record

Nearest Neighbor Methods for Spatial Patterns

0packages depend
2.5Kdownloads / year
–test coverage
11/13flavors OK

Overview

About

Contains the functions for testing the spatial patterns (of segregation, spatial symmetry, association, disease clustering, species correspondence, and reflexivity) based on nearest neighbor relations, especially using contingency tables such as nearest neighbor contingency tables (Ceyhan (2010) doi:10.1007/s10651-008-0104-x and Ceyhan (2017) doi:10.1016/j.jkss.2016.10.002 and references therein), nearest neighbor symmetry contingency tables (Ceyhan (2014) doi:10.1155/2014/698296), species correspondence contingency tables and reflexivity contingency tables (Ceyhan (2018) doi:10.2436/20.8080.02.72 for two (or higher) dimensional data. The package also contains functions for generating patterns of segregation, association, uniformity in a multi-class setting (Ceyhan (2014) doi:10.1007/s00477-013-0824-9), and various non-random labeling patterns for disease clustering in two dimensional cases (Ceyhan (2014) doi:10.1002/sim.6053), and for visualization of all these patterns for the two dimensional data. The tests are usually (asymptotic) normal z-tests or chi-square tests.

Install

Health

CRAN checks
2NOTE11OK
Check messages
NOTECRAN incoming feasibilityr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc
Maintainer: ‘Elvan Ceyhan <elvanceyhan@gmail.com>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: person(given = "Elvan",
                    family = "Ceyhan",
                    role = c("aut", "cre"),
                    email = "elvanceyhan@gmail.com")
as necessary.

CRAN check page ↗

Slowest check: 3.9 min · r-oldrel-windows-x86_64
Status changes
  • NOTE11 OK, 2 NOTE2026-06-09
  • ERROR11 OK, 1 NOTE, 1 ERROR2026-06-08
  • NOTE12 OK, 2 NOTE2026-04-10
  • ERROR12 OK, 1 NOTE, 1 ERROR2026-04-09
  • NOTE12 OK, 2 NOTE2026-03-10
Advisories

none known

Documentation

In release 0.1.2
READMEYes · 99 wordsVignettesNoNEWSNoCitation fileNoWebsitenot declared in DESCRIPTION
Help pages
158includes a package overview page
Examples that run
96%139 run in a plain check · 6 hold no code
Exported functions with examples
100%
Documented parameters
94%
Return-value docs
100%
Help pages citing references
70% with a bibliography file

Downloads

2.5K
CRAN downloads in the past year
Rank #20,449 · ~7/day · ~212/mo
Daily download trend is not available in this view yet.
24130 days
65390 days
2.5K1 year
Compare downloads with other packages →
Also on65 r2u5 autocran

Dependencies

Declared dependencies
2 external dependencies (excludes base and recommended)

Installing nnspat adds 80 packages (45 with compiled code, 73 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, bslib 5.6 MB.

Depends (0)
none
Imports (5)
MASSstatsgraphicspcdsRdpack
LinkingTo (0)
none
Suggests (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (from the free-text Author field) (1)

Maintainer since 0.1.0 (2021)

Releases (3)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 0.1.2Latest
    record
    2023-12-19 · current release · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 0.1.1
    record
    2022-08-30 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • 0.1.0
    record
    2021-05-10
  • R
    R 4.0.0 released · 2020-04-24

Package metadata

First published
2021-05-10
Total releases
3 / 5 yrs
License
GPL-2 OSI
Bundled data
3.9 KB / 1 file
Download size
734 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("nnspat")

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for nnspat version 0.1.2 [Data set]. HJJB, LLC. Data release v2026-10-24. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy