Skip to content

ptools

Tools for Poisson Data

v2.0.0 · Feb 7, 2023 · MIT + file LICENSE

Description

Functions used for analyzing count data, mostly crime counts. Includes checking difference in two Poisson counts (e-test), checking the fit for a Poisson distribution, small sample tests for counts in bins, Weighted Displacement Difference test (Wheeler and Ratcliffe, 2018) <doi:10.1186/s40163-018-0085-5>, to evaluate crime changes over time in treated/control areas. Additionally includes functions for aggregating spatial data and spatial feature engineering.

Downloads

CRAN

280

Last 30 days

14417th

758

Last 90 days

2.6K

Last year

Trend: +78.3% (30d vs prior 30d)

r2u CRAN

10

Last 30 days

28

Last 90 days

136

Last year

Trend: -44.4% (30d vs prior 30d)

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 9, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 8, 2026
ERROR r-devel-linux-x86_64-debian-gcc

PDF version of manual

Rd conversion errors:
Converting parsed Rd's to LaTeX .Warning in file(out, "wt") :
  cannot open file '/tmp/RtmpFhf1NF/ltxf4e977eb4ef47/nyc_bor.tex': No space left on device
Error in file(out, "wt") : cannot open the connection
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 3, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE May 30, 2026
ERROR r-devel-linux-x86_64-debian-clang

re-building of vignette outputs

Error(s) in re-building vignettes:
  ...
--- re-building ‘spat-feateng.Rmd’ using rmarkdown

Quitting from spat-feateng.Rmd:98-110 [unnamed-chunk-8]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>

...[truncated]...
ssing vignette 'spat-feateng.Rmd' failed with diagnostics:
invalid 'row.names' length
--- failed re-building ‘spat-feateng.Rmd’

SUMMARY: processing the following file failed:
  ‘spat-feateng.Rmd’

Error: Vignette re-building failed.
Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 19, 2026
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 16, 2026
ERROR r-oldrel-windows-x86_64

re-building of vignette outputs

Error(s) in re-building vignettes:
--- re-building 'spat-feateng.Rmd' using rmarkdown

Quitting from spat-feateng.Rmd:98-110 [unnamed-chunk-8]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error 
...[truncated]...
ssing vignette 'spat-feateng.Rmd' failed with diagnostics:
invalid 'row.names' length
--- failed re-building 'spat-feateng.Rmd'

SUMMARY: processing the following file failed:
  'spat-feateng.Rmd'

Error: Vignette re-building failed.
Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Dependency Network

Dependencies Reverse dependencies partitions sp raster igraph RANN spatstat.geom spatstat.utils sf ptools

Version History

5 tracked
new 2.0.0 Mar 10, 2026
updated 2.0.0 ← 1.0.2 diff Feb 6, 2023
updated 1.0.2 ← 1.0.1 diff Jan 5, 2023
updated 1.0.1 ← 1.0.0 diff Jul 20, 2022
new 1.0.0 Jul 15, 2022