{
  "_id": "6a1eeb65b401979e734122b4",
  "Package": "ptools",
  "Title": "Tools for Poisson Data",
  "Version": "2.0.0",
  "Authors@R": "person(given = \"Andrew\",\nfamily = \"Wheeler\",\nrole = c(\"aut\", \"cre\"),\nemail = \"apwheele@gmail.com\",\ncomment = c(ORCID = \"0000-0003-2255-1316\"))",
  "Maintainer": "Andrew Wheeler <apwheele@gmail.com>",
  "Description": "Functions used for analyzing count data, mostly crime\ncounts. Includes checking difference in two Poisson counts\n(e-test), checking the fit for a Poisson distribution, small\nsample tests for counts in bins, Weighted Displacement\nDifference test (Wheeler and Ratcliffe, 2018)\n<doi:10.1186/s40163-018-0085-5>, to evaluate crime changes over\ntime in treated/control areas. Additionally includes functions\nfor aggregating spatial data and spatial feature engineering.",
  "License": "MIT + file LICENSE",
  "URL": "https://github.com/apwheele/ptools",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.1.2",
  "Config/testthat/edition": "3",
  "VignetteBuilder": "knitr",
  "Config/pak/sysreqs": "libabsl-dev cmake libgdal-dev gdal-bin libgeos-dev\nlibglpk-dev libgmp3-dev libxml2-dev libssl-dev libproj-dev\nlibsqlite3-dev libudunits2-dev",
  "Repository": "https://apwheele.r-universe.dev",
  "Date/Publication": "2023-10-18 14:51:57 UTC",
  "RemoteUrl": "https://github.com/apwheele/ptools",
  "RemoteRef": "HEAD",
  "RemoteSha": "31c972b81de9a23b176da1d7726c50c61e322d40",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-19 09:49:51 UTC",
    "User": "root"
  },
  "Author": "Andrew Wheeler [aut, cre] (ORCID:\n<https://orcid.org/0000-0003-2255-1316>)",
  "MD5sum": "057864ab9dfcd7dc9bddab551548bde8",
  "_user": "apwheele",
  "_type": "src",
  "_file": "ptools_2.0.0.tar.gz",
  "_fileid": "185fd52bd2364038c608f36fc1d8971db28336d241006426651eb3ff07a8ca15",
  "_filesize": 3669709,
  "_sha256": "185fd52bd2364038c608f36fc1d8971db28336d241006426651eb3ff07a8ca15",
  "_created": "2026-05-19T09:49:51.000Z",
  "_published": "2026-06-02T14:40:37.988Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79097321963,
      "time": 150,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "7080249037"
    },
    {
      "job": 79097321819,
      "time": 166,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7080254441"
    },
    {
      "job": 79097321903,
      "time": 159,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "7080241094"
    },
    {
      "job": 79097321404,
      "time": 175,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7080246007"
    },
    {
      "job": 79097321731,
      "time": 209,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7080194405"
    },
    {
      "job": 79097320314,
      "time": 134,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7360932835"
    },
    {
      "job": 79097321089,
      "time": 106,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "7080233161"
    },
    {
      "job": 79097322201,
      "time": 84,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "7080225857"
    },
    {
      "job": 79097321161,
      "time": 123,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7080239516"
    }
  ],
  "_buildurl": "https://github.com/r-universe/apwheele/actions/runs/26089409518",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/apwheele/ptools",
  "_commit": {
    "id": "31c972b81de9a23b176da1d7726c50c61e322d40",
    "author": "apwheele <apwheele@gmail.com>",
    "committer": "apwheele <apwheele@gmail.com>",
    "message": "n should be observed count\n",
    "time": 1697640717
  },
  "_maintainer": {
    "name": "Andrew Wheeler",
    "email": "apwheele@gmail.com",
    "login": "apwheele",
    "description": "Data scientist, former academic, PhD Criminal Justice",
    "uuid": 954394,
    "orcid": "0000-0003-2255-1316"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.0.0",
      "role": "Depends"
    },
    {
      "package": "partitions",
      "role": "Imports"
    },
    {
      "package": "sp",
      "role": "Imports"
    },
    {
      "package": "raster",
      "role": "Imports"
    },
    {
      "package": "igraph",
      "role": "Imports"
    },
    {
      "package": "RANN",
      "role": "Imports"
    },
    {
      "package": "spatstat.geom",
      "role": "Imports"
    },
    {
      "package": "spatstat.utils",
      "role": "Imports"
    },
    {
      "package": "sf",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "apwheele",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_topics": [
    "crime-analysis",
    "criminal-justice",
    "criminology"
  ],
  "_stars": 5,
  "_contributors": [
    {
      "user": "apwheele",
      "count": 27,
      "uuid": 954394
    }
  ],
  "_userbio": {
    "uuid": 954394,
    "type": "user",
    "name": "Andrew Wheeler",
    "description": "Data scientist, former academic, PhD Criminal Justice"
  },
  "_downloads": {
    "count": 206,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/ptools"
  },
  "_devurl": "https://github.com/apwheele/ptools",
  "_searchresults": 11,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/ptools.html",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/apwheele/ptools",
  "_realowner": "apwheele",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0.0",
      "date": "2022-07-16"
    },
    {
      "version": "1.0.1",
      "date": "2022-07-21"
    },
    {
      "version": "1.0.2",
      "date": "2023-01-06"
    },
    {
      "version": "2.0.0",
      "date": "2023-02-07"
    }
  ],
  "_exports": [
    "bisq_xy",
    "buff_sp",
    "check_pois",
    "count_xy",
    "dcount_xy",
    "dist_xy",
    "e_test",
    "hex_area",
    "hex_dim",
    "hex_wd",
    "idw_xy",
    "kern_xy",
    "near_strings1",
    "near_strings2",
    "pai",
    "pai_summary",
    "pois_contour",
    "powalt",
    "prep_grid",
    "prep_hexgrid",
    "scanw",
    "small_samptest",
    "vor_sp",
    "wdd",
    "wdd_harm"
  ],
  "_datasets": [
    {
      "name": "nyc_bor",
      "title": "NYC Boroughs",
      "object": "nyc_bor",
      "class": [
        "SpatialPolygonsDataFrame"
      ],
      "fields": [],
      "table": false,
      "tojson": false
    },
    {
      "name": "nyc_cafe",
      "title": "NYC Sidewalk Cafes",
      "object": "nyc_cafe",
      "class": [
        "SpatialPointsDataFrame"
      ],
      "fields": [],
      "table": false,
      "tojson": false
    },
    {
      "name": "nyc_liq",
      "title": "NYC Alcohol Licenses",
      "object": "nyc_liq",
      "class": [
        "SpatialPointsDataFrame"
      ],
      "fields": [],
      "table": false,
      "tojson": false
    },
    {
      "name": "nyc_shoot",
      "title": "NYPD Open Data on Shootings",
      "object": "nyc_shoot",
      "class": [
        "SpatialPointsDataFrame"
      ],
      "fields": [],
      "table": false,
      "tojson": false
    }
  ],
  "_help": [
    {
      "page": "bisq_xy",
      "title": "Bisquare weighted sum",
      "topics": [
        "bisq_xy"
      ]
    },
    {
      "page": "buff_sp",
      "title": "Creates buffer of sp polygon object",
      "topics": [
        "buff_sp"
      ]
    },
    {
      "page": "check_pois",
      "title": "Checks the fit of a Poisson Distribution",
      "topics": [
        "check_pois"
      ]
    },
    {
      "page": "count_xy",
      "title": "Count of points in polygon",
      "topics": [
        "count_xy"
      ]
    },
    {
      "page": "dcount_xy",
      "title": "Count of points within distance of polygon",
      "topics": [
        "dcount_xy"
      ]
    },
    {
      "page": "dist_xy",
      "title": "Distance to nearest based on centroid",
      "topics": [
        "dist_xy"
      ]
    },
    {
      "page": "e_test",
      "title": "Poisson E-test",
      "topics": [
        "e_test"
      ]
    },
    {
      "page": "hex_area",
      "title": "Get area of hexagon given length of side",
      "topics": [
        "hex_area"
      ]
    },
    {
      "page": "hex_dim",
      "title": "Get dimensions of hexagon given area",
      "topics": [
        "hex_dim"
      ]
    },
    {
      "page": "hex_wd",
      "title": "Get width of hexagon given height",
      "topics": [
        "hex_wd"
      ]
    },
    {
      "page": "idw_xy",
      "title": "Inverse distance weighted sums",
      "topics": [
        "idw_xy"
      ]
    },
    {
      "page": "kern_xy",
      "title": "Kernel density of nearby areas",
      "topics": [
        "kern_xy"
      ]
    },
    {
      "page": "near_strings1",
      "title": "Strings of Near Repeats",
      "topics": [
        "near_strings1"
      ]
    },
    {
      "page": "near_strings2",
      "title": "Strings of Near Repeats using KDtrees",
      "topics": [
        "near_strings2"
      ]
    },
    {
      "page": "nyc_bor",
      "title": "NYC Boroughs",
      "topics": [
        "nyc_bor"
      ]
    },
    {
      "page": "nyc_cafe",
      "title": "NYC Sidewalk Cafes",
      "topics": [
        "nyc_cafe"
      ]
    },
    {
      "page": "nyc_liq",
      "title": "NYC Alcohol Licenses",
      "topics": [
        "nyc_liq"
      ]
    },
    {
      "page": "nyc_shoot",
      "title": "NYPD Open Data on Shootings",
      "topics": [
        "nyc_shoot"
      ]
    },
    {
      "page": "pai",
      "title": "Predictive Accuracy Index",
      "topics": [
        "pai"
      ]
    },
    {
      "page": "pai_summary",
      "title": "Summary Table for Multiple PAI Stats",
      "topics": [
        "pai_summary"
      ]
    },
    {
      "page": "pois_contour",
      "title": "Checks the fit of a Poisson Distribution",
      "topics": [
        "pois_contour"
      ]
    },
    {
      "page": "powalt",
      "title": "Power for Small Sample Exact Test",
      "topics": [
        "powalt"
      ]
    },
    {
      "page": "prep_grid",
      "title": "Creates vector grid cells over study area",
      "topics": [
        "prep_grid"
      ]
    },
    {
      "page": "prep_hexgrid",
      "title": "Creates hexagon grid cells over study area",
      "topics": [
        "prep_hexgrid"
      ]
    },
    {
      "page": "scanw",
      "title": "Scan statistic approximation for counts in moving window",
      "topics": [
        "scanw"
      ]
    },
    {
      "page": "small_samptest",
      "title": "Small Sample Exact Test for Counts in Bins",
      "topics": [
        "small_samptest"
      ]
    },
    {
      "page": "vor_sp",
      "title": "Voronoi tesselation from input points",
      "topics": [
        "vor_sp"
      ]
    },
    {
      "page": "wdd",
      "title": "Estimates the WDD Test",
      "topics": [
        "wdd"
      ]
    },
    {
      "page": "wdd_harm",
      "title": "Combines Multiple WDD Tests",
      "topics": [
        "wdd_harm"
      ]
    }
  ],
  "_readme": "https://github.com/apwheele/ptools/raw/HEAD/README.md",
  "_rundeps": [
    "class",
    "classInt",
    "cli",
    "cpp11",
    "DBI",
    "deldir",
    "e1071",
    "glue",
    "gmp",
    "igraph",
    "KernSmooth",
    "lattice",
    "lifecycle",
    "magrittr",
    "MASS",
    "Matrix",
    "partitions",
    "pkgconfig",
    "polyclip",
    "polynom",
    "proxy",
    "RANN",
    "raster",
    "rbibutils",
    "Rcpp",
    "Rdpack",
    "rlang",
    "s2",
    "sets",
    "sf",
    "sp",
    "spatstat.data",
    "spatstat.geom",
    "spatstat.univar",
    "spatstat.utils",
    "terra",
    "units",
    "vctrs",
    "wk"
  ],
  "_vignettes": [
    {
      "source": "spat-feateng.Rmd",
      "filename": "spat-feateng.html",
      "title": "Spatial Feature Engineering with ptools",
      "author": "Andrew Wheeler",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Creating Spatial Units of Analysis",
        "Spatial Feature Engineering"
      ],
      "created": "2021-10-30 13:30:12",
      "modified": "2023-02-07 18:40:09",
      "commits": 3
    }
  ],
  "_score": 4.439332693830263,
  "_indexed": true,
  "_nocasepkg": "ptools",
  "_universes": [
    "apwheele"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2.0.0",
      "date": "2026-05-19T09:52:18.000Z",
      "distro": "noble",
      "commit": "31c972b81de9a23b176da1d7726c50c61e322d40",
      "fileid": "4c9ab512060dfec80c842904d19ab342909394646c59085d26fb01b05be1f2cc",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/apwheele/actions/runs/26089409518"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "2.0.0",
      "date": "2026-05-19T09:52:33.000Z",
      "distro": "noble",
      "commit": "31c972b81de9a23b176da1d7726c50c61e322d40",
      "fileid": "d2c6caf9238b1443bea045632ee79951a2144666ad875053bbbaeed3fd27fc98",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/apwheele/actions/runs/26089409518"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "2.0.0",
      "date": "2026-05-19T09:52:04.000Z",
      "commit": "31c972b81de9a23b176da1d7726c50c61e322d40",
      "fileid": "7e5e31456d37529f29b9f370abbf14692574cf93b40fb4b2126b2682a886268b",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/apwheele/actions/runs/26089409518"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "2.0.0",
      "date": "2026-05-19T09:52:16.000Z",
      "commit": "31c972b81de9a23b176da1d7726c50c61e322d40",
      "fileid": "4b4de1f54f2bff021605b0fd4e39ac78d32b79e330a7386226ca6473f872393e",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/apwheele/actions/runs/26089409518"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "2.0.0",
      "date": "2026-05-19T09:51:24.000Z",
      "commit": "31c972b81de9a23b176da1d7726c50c61e322d40",
      "fileid": "a2581eca3c5dc78e3613ee9ad3bd90c6eb0ec85e8f448b7f911f34c9c613430b",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/apwheele/actions/runs/26089409518"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "2.0.0",
      "date": "2026-05-19T09:51:09.000Z",
      "commit": "31c972b81de9a23b176da1d7726c50c61e322d40",
      "fileid": "040bba22e457b76c6eb120151d27c418f67f89c7a225a6ea734edd707388a9a7",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/apwheele/actions/runs/26089409518"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "2.0.0",
      "date": "2026-05-19T09:51:45.000Z",
      "commit": "31c972b81de9a23b176da1d7726c50c61e322d40",
      "fileid": "8e9d34f6b97402269be3e3c9b624769e949b15e3d1446861545c7409ff892862",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/apwheele/actions/runs/26089409518"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "2.0.0",
      "date": "2026-06-02T14:40:06.000Z",
      "commit": "31c972b81de9a23b176da1d7726c50c61e322d40",
      "fileid": "816855992246886089e33bbad48cd6723a55bf0715e423e65336a81e70d27e7f",
      "status": "success",
      "buildurl": "https://github.com/r-universe/apwheele/actions/runs/26089409518"
    }
  ]
}