{
  "_id": "6ad1caf529625c14e47ae876",
  "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-10-16 06:45:05 UTC",
    "User": "root"
  },
  "Author": "Andrew Wheeler [aut, cre] (ORCID:\n<https://orcid.org/0000-0003-2255-1316>)",
  "_user": "apwheele",
  "_type": "src",
  "_file": "ptools_2.0.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/8e05da1e1d7f4a7371c35625a578350f47a3e7ee90449c30b94cecbf1724efad",
  "_filesize": 3675330,
  "_sha256": "8e05da1e1d7f4a7371c35625a578350f47a3e7ee90449c30b94cecbf1724efad",
  "_expires": "2027-01-24T06:57:54.000Z",
  "_created": "2026-10-16T06:45:05.000Z",
  "_published": "2026-10-16T06:57:57.214Z",
  "_buildurl": "https://github.com/r-universe/apwheele/actions/runs/38862632939",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 116849392763,
      "time": 143,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "12029394617"
    },
    {
      "job": 116849392921,
      "time": 145,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "12029434697"
    },
    {
      "job": 116849392605,
      "time": 169,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "12030239321"
    },
    {
      "job": 116849392618,
      "time": 193,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "12029837433"
    },
    {
      "job": 116848279751,
      "time": 218,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12029861953"
    },
    {
      "job": 116849392556,
      "time": 116,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12029818451"
    },
    {
      "job": 116849392611,
      "time": 114,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "12029818458"
    },
    {
      "job": 116849392617,
      "time": 76,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "12030490179"
    },
    {
      "job": 116849392560,
      "time": 112,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "12030405993"
    }
  ],
  "_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"
  },
  "_distro": "resolute",
  "_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",
    "followers": 84,
    "description": "Data scientist, former academic, PhD Criminal Justice"
  },
  "_downloads": {
    "count": 237,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/ptools"
  },
  "_devurl": "https://github.com/apwheele/ptools",
  "_searchresults": 11,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/ptools.html",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE"
  ],
  "_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",
    "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-10-16T06:47:21.000Z",
      "distro": "resolute",
      "commit": "31c972b81de9a23b176da1d7726c50c61e322d40",
      "fileid": "https://r2.ropensci.org/9ed379b232f3c36d2aaf6f77ab6119f7da92713a919de2d40db198e11922a125",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/apwheele/actions/runs/38862632939"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "2.0.0",
      "date": "2026-10-16T06:47:18.000Z",
      "distro": "resolute",
      "commit": "31c972b81de9a23b176da1d7726c50c61e322d40",
      "fileid": "https://r2.ropensci.org/ab20d099e2e19aeacfc163e838a3d283f8a3f392bda7673802603e767fbdd4a9",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/apwheele/actions/runs/38862632939"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "2.0.0",
      "date": "2026-10-16T06:56:42.000Z",
      "commit": "31c972b81de9a23b176da1d7726c50c61e322d40",
      "fileid": "https://r2.ropensci.org/9c39cd5d3f4edda6460605369609dd075b5b1626898f33563cacd8ae1250436e",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/apwheele/actions/runs/38862632939"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "2.0.0",
      "date": "2026-10-16T06:48:55.000Z",
      "commit": "31c972b81de9a23b176da1d7726c50c61e322d40",
      "fileid": "https://r2.ropensci.org/ea58b504769b0028e0f3d5ce7114f55b943ad5da0f67f627333876b0eeaff1b6",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/apwheele/actions/runs/38862632939"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "2.0.0",
      "date": "2026-10-16T06:47:15.000Z",
      "commit": "31c972b81de9a23b176da1d7726c50c61e322d40",
      "fileid": "https://r2.ropensci.org/8fb7291987f578265303ed522fc4c07a210723ca59e624f9917f54ae87329339",
      "status": "success",
      "buildurl": "https://github.com/r-universe/apwheele/actions/runs/38862632939"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "2.0.0",
      "date": "2026-10-16T06:46:52.000Z",
      "commit": "31c972b81de9a23b176da1d7726c50c61e322d40",
      "fileid": "https://r2.ropensci.org/75dcc57beb7d815cb7bddb33d0617ae8ccc145f45a6f4f555e523d3db6ff4d62",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/apwheele/actions/runs/38862632939"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "2.0.0",
      "date": "2026-10-16T06:46:10.000Z",
      "commit": "31c972b81de9a23b176da1d7726c50c61e322d40",
      "fileid": "https://r2.ropensci.org/91680947e1e9ccfa431ef11cadf4a6f9c15e777dcc00e761dcc1df9755616ae7",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/apwheele/actions/runs/38862632939"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "2.0.0",
      "date": "2026-10-16T06:46:42.000Z",
      "commit": "31c972b81de9a23b176da1d7726c50c61e322d40",
      "fileid": "https://r2.ropensci.org/d786bd28308eaf6ed4ace40212d825cdc51b917fb52ce68de9d69e0655289014",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/apwheele/actions/runs/38862632939"
    }
  ]
}