{
  "_id": "6afaf3fc117874b00e238cb8",
  "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-11-16 11:16:42 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>",
  "_user": "alarm-redist",
  "_type": "src",
  "_file": "divseg_0.1.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/eddaef94d2e267235c0e3c4575a9d351e9110ecbd8333b0a98eac3d568506eef",
  "_filesize": 301621,
  "_sha256": "eddaef94d2e267235c0e3c4575a9d351e9110ecbd8333b0a98eac3d568506eef",
  "_expires": "2027-02-24T12:15:54.000Z",
  "_created": "2026-11-16T11:16:42.000Z",
  "_published": "2026-11-16T12:15:56.031Z",
  "_upstream": "https://github.com/christopherkenny/divseg",
  "_status": "success",
  "_maintainer": {
    "name": "Christopher T. Kenny",
    "email": "ctkenny@proton.me",
    "orcid": "0000-0002-9386-6860"
  },
  "_jobs": [
    {
      "job": 133261611130,
      "time": 130,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "14220318037"
    },
    {
      "job": 133261611055,
      "time": 124,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14219969835"
    },
    {
      "job": 133261611153,
      "time": 105,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "14223514651"
    },
    {
      "job": 133261611158,
      "time": 74,
      "config": "macos-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14224443318"
    },
    {
      "job": 133259835223,
      "time": 205,
      "config": "source",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14220722606"
    },
    {
      "job": 133261611061,
      "time": 111,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "14220873814"
    },
    {
      "job": 133261611256,
      "time": 77,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "14220972725"
    },
    {
      "job": 133261611163,
      "time": 87,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "14220489022"
    },
    {
      "job": 133261611136,
      "time": 92,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14220758900"
    }
  ],
  "_buildurl": "https://github.com/r-universe/alarm-redist/actions/runs/43855823176",
  "_commit": {
    "id": "a62f077afd9389ea1cc3218bbb5fd6a8068f58b3",
    "author": "Christopher T. Kenny <ctk44@cornell.edu>",
    "committer": "Christopher T. Kenny <ctk44@cornell.edu>",
    "message": "use ctktemplate pkgdown theme",
    "time": 1777652098
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_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": "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",
    "followers": 31,
    "description": "Algorithm-Assisted Redistricting Methodology"
  },
  "_downloads": {
    "count": 508,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/divseg"
  },
  "_devurl": "https://github.com/christopherkenny/divseg",
  "_pkgdown": "https://christophertkenny.com/divseg/",
  "_rbuild": "4.6.2",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/divseg.html",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE"
  ],
  "_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",
    "pillar",
    "pkgconfig",
    "proxy",
    "R6",
    "Rcpp",
    "rlang",
    "s2",
    "sf",
    "tibble",
    "tidyselect",
    "units",
    "utf8",
    "vctrs",
    "withr",
    "wk"
  ],
  "_score": 3.1760912590556813,
  "_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-11-16T11:18:58.000Z",
      "distro": "resolute",
      "commit": "a62f077afd9389ea1cc3218bbb5fd6a8068f58b3",
      "fileid": "https://r2.ropensci.org/a29ebfe59f71a339d03c20c51ee1e595e9ea47146c531cba2310b1311f2ff366",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/alarm-redist/actions/runs/43855823176"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-11-16T11:18:48.000Z",
      "distro": "resolute",
      "commit": "a62f077afd9389ea1cc3218bbb5fd6a8068f58b3",
      "fileid": "https://r2.ropensci.org/e1d4768c77b7ac19d66c1d9bc4291e2c3300367b6febcb863cb38a185e82e29c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/alarm-redist/actions/runs/43855823176"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-11-16T12:15:17.000Z",
      "commit": "a62f077afd9389ea1cc3218bbb5fd6a8068f58b3",
      "fileid": "https://r2.ropensci.org/9c0b75775a421d43afa63ff84eb1017067ab744308de0b07bcae23b9421e9775",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/alarm-redist/actions/runs/43855823176"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-11-16T12:13:25.000Z",
      "commit": "a62f077afd9389ea1cc3218bbb5fd6a8068f58b3",
      "fileid": "https://r2.ropensci.org/aa54fbf461ea1de813fa58c2ded5af685b463ac04f319df5fc404f6cca84584d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/alarm-redist/actions/runs/43855823176"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.0",
      "date": "2026-11-16T11:18:49.000Z",
      "commit": "a62f077afd9389ea1cc3218bbb5fd6a8068f58b3",
      "fileid": "https://r2.ropensci.org/bb255bddb6e1a3c227ffda4d09bf54c0f395321fbe30dd2edc858acf291a1e48",
      "status": "success",
      "buildurl": "https://github.com/r-universe/alarm-redist/actions/runs/43855823176"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-11-16T11:17:56.000Z",
      "commit": "a62f077afd9389ea1cc3218bbb5fd6a8068f58b3",
      "fileid": "https://r2.ropensci.org/3b78e4120e8ecd73a4dfeca7f2beae92733242aa4ea7c1e0b4be0b2658af2276",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/alarm-redist/actions/runs/43855823176"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-11-16T11:18:04.000Z",
      "commit": "a62f077afd9389ea1cc3218bbb5fd6a8068f58b3",
      "fileid": "https://r2.ropensci.org/4837c915155c4aaa297f271e9cfdb74c676261ce9ebcd37a6051c4fcd56011dc",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/alarm-redist/actions/runs/43855823176"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-11-16T11:18:10.000Z",
      "commit": "a62f077afd9389ea1cc3218bbb5fd6a8068f58b3",
      "fileid": "https://r2.ropensci.org/48e1f8384d18b088c8435b496563801ce2abb1998e6a863c24cf606189109327",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/alarm-redist/actions/runs/43855823176"
    }
  ]
}