{
  "_id": "6a1bd6ba1d7bb097a0a15fb0",
  "Package": "divseg",
  "Title": "Calculate Diversity and Segregation Indices",
  "Version": "0.1.0",
  "Authors@R": "person(\"Christopher T.\", \"Kenny\", email = \"ctkenny@proton.me\",\nrole = c(\"aut\", \"cre\"), comment = c(ORCID = \"0000-0002-9386-6860\"))",
  "Description": "Implements common measures of diversity and spatial\nsegregation. This package has tools to compute the majority of\nmeasures are reviewed in Massey and Denton (1988)\n<doi:10.2307/2579183>. Multiple common measures of\nwithin-geography diversity are implemented as well. All\nfunctions operate on data frames with a 'tidyselect' based\nworkflow.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.2",
  "BugReports": "https://github.com/christopherkenny/divseg/issues",
  "URL": "https://github.com/christopherkenny/divseg/,\nhttps://christophertkenny.com/divseg/",
  "Config/testthat/edition": "3",
  "Config/Needs/website": "christopherkenny/ctktemplate",
  "Config/pak/sysreqs": "libabsl-dev cmake libgdal-dev gdal-bin libgeos-dev\nlibssl-dev libproj-dev libsqlite3-dev libudunits2-dev",
  "Repository": "https://alarm-redist.r-universe.dev",
  "Date/Publication": "2026-05-01 16:14:58 UTC",
  "RemoteUrl": "https://github.com/christopherkenny/divseg",
  "RemoteRef": "HEAD",
  "RemoteSha": "a62f077afd9389ea1cc3218bbb5fd6a8068f58b3",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-31 06:23:29 UTC",
    "User": "root"
  },
  "Author": "Christopher T. Kenny [aut, cre] (ORCID:\n<https://orcid.org/0000-0002-9386-6860>)",
  "Maintainer": "Christopher T. Kenny <ctkenny@proton.me>",
  "MD5sum": "a9f38e440d66f0d10337d37b77fe5afa",
  "_user": "alarm-redist",
  "_type": "src",
  "_file": "divseg_0.1.0.tar.gz",
  "_fileid": "6c850086ab69ebf161f68970599fee912835bcc30d8b854f15c962e4296ff8f9",
  "_filesize": 301295,
  "_sha256": "6c850086ab69ebf161f68970599fee912835bcc30d8b854f15c962e4296ff8f9",
  "_created": "2026-05-31T06:23:29.000Z",
  "_published": "2026-05-31T06:35:38.301Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 78705283404,
      "time": 134,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7314407072"
    },
    {
      "job": 78705283423,
      "time": 131,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7314406952"
    },
    {
      "job": 78705283417,
      "time": 96,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7314466934"
    },
    {
      "job": 78705283407,
      "time": 111,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7314467933"
    },
    {
      "job": 78705125120,
      "time": 177,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7314391668"
    },
    {
      "job": 78705283382,
      "time": 113,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7314404749"
    },
    {
      "job": 78705283405,
      "time": 85,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7314401481"
    },
    {
      "job": 78705283398,
      "time": 82,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7314401121"
    },
    {
      "job": 78705283391,
      "time": 81,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7314401009"
    }
  ],
  "_buildurl": "https://github.com/r-universe/alarm-redist/actions/runs/26705229352",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/christopherkenny/divseg",
  "_commit": {
    "id": "a62f077afd9389ea1cc3218bbb5fd6a8068f58b3",
    "author": "Christopher T. Kenny <ctk44@cornell.edu>",
    "committer": "Christopher T. Kenny <ctk44@cornell.edu>",
    "message": "use ctktemplate pkgdown theme",
    "time": 1777652098
  },
  "_maintainer": {
    "name": "Christopher T. Kenny",
    "email": "ctkenny@proton.me",
    "orcid": "0000-0002-9386-6860"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "sf",
      "version": ">= 1.0.0",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "version": ">= 0.4.11",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "tidyselect",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "role": "Imports"
    },
    {
      "package": "units",
      "role": "Imports"
    },
    {
      "package": "roxygen2",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "christopherkenny",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-36",
      "n": 4
    },
    {
      "week": "2026-18",
      "n": 2
    }
  ],
  "_tags": [],
  "_stars": 3,
  "_contributors": [
    {
      "user": "christopherkenny",
      "count": 45,
      "uuid": 28026893
    },
    {
      "user": "lionel-",
      "count": 6,
      "uuid": 4465050
    }
  ],
  "_userbio": {
    "uuid": 81447081,
    "type": "organization",
    "name": "ALARM Project",
    "description": "Algorithm-Assisted Redistricting Methodology"
  },
  "_downloads": {
    "count": 251,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/divseg"
  },
  "_devurl": "https://github.com/christopherkenny/divseg",
  "_pkgdown": "https://christophertkenny.com/divseg/",
  "_searchresults": 12,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/divseg.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/christopherkenny/divseg",
  "_realowner": "christopherkenny",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.0.4",
      "date": "2021-08-09"
    },
    {
      "version": "0.0.5",
      "date": "2022-12-17"
    },
    {
      "version": "0.1.0",
      "date": "2025-09-02"
    }
  ],
  "_exports": [
    ":=",
    ".data",
    "abs_cent",
    "abs_clust",
    "abs_conc",
    "all_of",
    "any_of",
    "as_label",
    "as_name",
    "atkinson",
    "blau",
    "contains",
    "correlation",
    "dd_interaction",
    "dd_isolation",
    "delta",
    "dissim",
    "diversity",
    "ds_abs_cent",
    "ds_abs_clust",
    "ds_abs_conc",
    "ds_atkinson",
    "ds_blau",
    "ds_correlation",
    "ds_dd_interaction",
    "ds_dd_isolation",
    "ds_delta",
    "ds_dissim",
    "ds_diversity",
    "ds_entropy",
    "ds_gini",
    "ds_hhi",
    "ds_interaction",
    "ds_inv_simpson",
    "ds_isolation",
    "ds_perplexity",
    "ds_rel_cent",
    "ds_rel_clust",
    "ds_rel_conc",
    "ds_reyni",
    "ds_shannon",
    "ds_simpson",
    "ds_spat_prox",
    "ends_with",
    "enquo",
    "enquos",
    "entropy",
    "everything",
    "gini",
    "hhi",
    "interaction",
    "inv_simpson",
    "isolation",
    "last_col",
    "matches",
    "num_range",
    "one_of",
    "perplexity",
    "rel_cent",
    "rel_clust",
    "rel_conc",
    "reyni",
    "shannon",
    "simpson",
    "spat_prox",
    "starts_with"
  ],
  "_datasets": [
    {
      "name": "de_county",
      "title": "de_county",
      "object": "de_county",
      "class": [
        "sf",
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "GEOID",
        "NAME",
        "pop",
        "pop_white",
        "pop_black",
        "pop_hisp",
        "pop_aian",
        "pop_asian",
        "pop_nhpi",
        "pop_other",
        "pop_two",
        "vap",
        "vap_white",
        "vap_black",
        "vap_hisp",
        "vap_aian",
        "vap_asian",
        "vap_nhpi",
        "vap_other",
        "vap_two",
        "geometry"
      ],
      "rows": 3,
      "table": false,
      "tojson": true
    },
    {
      "name": "de_tract",
      "title": "de_tract",
      "object": "de_tract",
      "class": [
        "sf",
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "GEOID",
        "NAME",
        "pop",
        "pop_white",
        "pop_black",
        "pop_hisp",
        "pop_aian",
        "pop_asian",
        "pop_nhpi",
        "pop_other",
        "pop_two",
        "vap",
        "vap_white",
        "vap_black",
        "vap_hisp",
        "vap_aian",
        "vap_asian",
        "vap_nhpi",
        "vap_other",
        "vap_two",
        "geometry"
      ],
      "rows": 218,
      "table": false,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "de_county",
      "title": "de_county",
      "concept": [
        "data"
      ],
      "topics": [
        "de_county"
      ]
    },
    {
      "page": "de_tract",
      "title": "de_tract",
      "concept": [
        "data"
      ],
      "topics": [
        "de_tract"
      ]
    },
    {
      "page": "ds_abs_cent",
      "title": "Compute Absolute Centralization",
      "concept": [
        "centralization"
      ],
      "topics": [
        "abs_cent",
        "ds_abs_cent"
      ]
    },
    {
      "page": "ds_abs_clust",
      "title": "Compute Absolute Clustering",
      "concept": [
        "clustering"
      ],
      "topics": [
        "abs_clust",
        "ds_abs_clust"
      ]
    },
    {
      "page": "ds_abs_conc",
      "title": "Compute Absolute Concentration",
      "concept": [
        "concentration"
      ],
      "topics": [
        "abs_conc",
        "ds_abs_conc"
      ]
    },
    {
      "page": "ds_atkinson",
      "title": "Compute Atkinson b Index",
      "concept": [
        "evenness"
      ],
      "topics": [
        "atkinson",
        "ds_atkinson"
      ]
    },
    {
      "page": "ds_blau",
      "title": "Compute Blau's Index",
      "concept": [
        "div"
      ],
      "topics": [
        "blau",
        "ds_blau"
      ]
    },
    {
      "page": "ds_correlation",
      "title": "Compute Correlation Index",
      "concept": [
        "exposure"
      ],
      "topics": [
        "correlation",
        "ds_correlation"
      ]
    },
    {
      "page": "ds_dd_interaction",
      "title": "Compute Distance Decay Interaction",
      "concept": [
        "clustering"
      ],
      "topics": [
        "dd_interaction",
        "ds_dd_interaction"
      ]
    },
    {
      "page": "ds_dd_isolation",
      "title": "Compute Distance Decay Isolation",
      "concept": [
        "clustering"
      ],
      "topics": [
        "dd_isolation",
        "ds_dd_isolation"
      ]
    },
    {
      "page": "ds_delta",
      "title": "Compute Delta Index",
      "concept": [
        "concentration"
      ],
      "topics": [
        "delta",
        "ds_delta"
      ]
    },
    {
      "page": "ds_dissim",
      "title": "Compute Dissimilarity Index",
      "concept": [
        "evenness"
      ],
      "topics": [
        "dissim",
        "ds_dissim"
      ]
    },
    {
      "page": "ds_diversity",
      "title": "Compute Diversity",
      "concept": [
        "div"
      ],
      "topics": [
        "diversity",
        "ds_diversity",
        "ds_perplexity",
        "perplexity"
      ]
    },
    {
      "page": "ds_entropy",
      "title": "Compute Entropy Index",
      "concept": [
        "evenness"
      ],
      "topics": [
        "ds_entropy",
        "entropy"
      ]
    },
    {
      "page": "ds_gini",
      "title": "Compute Gini Index",
      "concept": [
        "evenness"
      ],
      "topics": [
        "ds_gini",
        "gini"
      ]
    },
    {
      "page": "ds_hhi",
      "title": "Compute Herfindahl-Hirshman Index",
      "concept": [
        "div"
      ],
      "topics": [
        "ds_hhi",
        "ds_simpson",
        "hhi",
        "simpson"
      ]
    },
    {
      "page": "ds_interaction",
      "title": "Compute Interaction Index",
      "concept": [
        "exposure"
      ],
      "topics": [
        "ds_interaction",
        "interaction"
      ]
    },
    {
      "page": "ds_inv_simpson",
      "title": "Compute Simpson Index",
      "concept": [
        "div"
      ],
      "topics": [
        "ds_inv_simpson",
        "inv_simpson"
      ]
    },
    {
      "page": "ds_isolation",
      "title": "Compute Isolation Index",
      "concept": [
        "exposure"
      ],
      "topics": [
        "ds_isolation",
        "isolation"
      ]
    },
    {
      "page": "ds_rel_cent",
      "title": "Compute Relative Centralization",
      "concept": [
        "centralization"
      ],
      "topics": [
        "ds_rel_cent",
        "rel_cent"
      ]
    },
    {
      "page": "ds_rel_clust",
      "title": "Compute Relative Clustering",
      "concept": [
        "clustering"
      ],
      "topics": [
        "ds_rel_clust",
        "rel_clust"
      ]
    },
    {
      "page": "ds_rel_conc",
      "title": "Compute Relative Concentration",
      "concept": [
        "concentration"
      ],
      "topics": [
        "ds_rel_conc",
        "rel_conc"
      ]
    },
    {
      "page": "ds_reyni",
      "title": "Compute Reyni Entropy",
      "concept": [
        "div"
      ],
      "topics": [
        "ds_reyni",
        "reyni"
      ]
    },
    {
      "page": "ds_shannon",
      "title": "Compute Shannon Index",
      "concept": [
        "div"
      ],
      "topics": [
        "ds_shannon",
        "shannon"
      ]
    },
    {
      "page": "ds_spat_prox",
      "title": "Compute Spatial Proximity",
      "concept": [
        "clustering"
      ],
      "topics": [
        "ds_spat_prox",
        "spat_prox"
      ]
    }
  ],
  "_pkglogo": "https://github.com/christopherkenny/divseg/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/christopherkenny/divseg/raw/HEAD/README.md",
  "_rundeps": [
    "class",
    "classInt",
    "cli",
    "DBI",
    "dplyr",
    "e1071",
    "generics",
    "glue",
    "KernSmooth",
    "lifecycle",
    "magrittr",
    "MASS",
    "pillar",
    "pkgconfig",
    "proxy",
    "R6",
    "Rcpp",
    "rlang",
    "s2",
    "sf",
    "tibble",
    "tidyselect",
    "units",
    "utf8",
    "vctrs",
    "withr",
    "wk"
  ],
  "_score": 3.5563025007672873,
  "_indexed": false,
  "_nocasepkg": "divseg",
  "_universes": [
    "alarm-redist"
  ],
  "_indexurl": "https://christopherkenny.r-universe.dev/divseg",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-05-31T06:25:35.000Z",
      "distro": "noble",
      "commit": "a62f077afd9389ea1cc3218bbb5fd6a8068f58b3",
      "fileid": "b751b30b70172d1426b265b7fcf532d94f3354a81cbe403de4ff11e78b16723a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/alarm-redist/actions/runs/26705229352"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-05-31T06:25:35.000Z",
      "distro": "noble",
      "commit": "a62f077afd9389ea1cc3218bbb5fd6a8068f58b3",
      "fileid": "46e91fcd5678e90249e66b8ca9fc9a9f19557dfe08e1d162bc68af04ef36b638",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/alarm-redist/actions/runs/26705229352"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-05-31T06:35:01.000Z",
      "commit": "a62f077afd9389ea1cc3218bbb5fd6a8068f58b3",
      "fileid": "6630b45148da03cac9b7dcd26f694ab53317d733e3b2f511251514379d2e8acd",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/alarm-redist/actions/runs/26705229352"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-05-31T06:35:05.000Z",
      "commit": "a62f077afd9389ea1cc3218bbb5fd6a8068f58b3",
      "fileid": "f7b417ebca4f354c838b50e6663571ca963a2d90192931ddb5fc092b89118117",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/alarm-redist/actions/runs/26705229352"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.0",
      "date": "2026-05-31T06:25:36.000Z",
      "commit": "a62f077afd9389ea1cc3218bbb5fd6a8068f58b3",
      "fileid": "7b4566c275b01e59f05803afff92b8c6700f9b573a572d7019226a736460e50d",
      "status": "success",
      "buildurl": "https://github.com/r-universe/alarm-redist/actions/runs/26705229352"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-05-31T06:24:42.000Z",
      "commit": "a62f077afd9389ea1cc3218bbb5fd6a8068f58b3",
      "fileid": "42b43003fa8220bdc81e74134c1b15d3f4370116abd115453d6f7295cde527a8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/alarm-redist/actions/runs/26705229352"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-05-31T06:24:38.000Z",
      "commit": "a62f077afd9389ea1cc3218bbb5fd6a8068f58b3",
      "fileid": "19974ae5e3fe42c18d63bc4e43f898f64c6cefee9b62f2358eb0b1a0b38313cb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/alarm-redist/actions/runs/26705229352"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-05-31T06:24:37.000Z",
      "commit": "a62f077afd9389ea1cc3218bbb5fd6a8068f58b3",
      "fileid": "4e1e89e00e066cbe8760af539827996ae1e5c50048e3873324c11d7c245c49a8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/alarm-redist/actions/runs/26705229352"
    }
  ]
}