{"id":32154515,"url":"https://github.com/fixedeffects/groupedarrays.jl","last_synced_at":"2026-02-19T13:34:11.495Z","repository":{"id":39968512,"uuid":"389178454","full_name":"FixedEffects/GroupedArrays.jl","owner":"FixedEffects","description":null,"archived":false,"fork":false,"pushed_at":"2023-06-21T14:59:50.000Z","size":91,"stargazers_count":0,"open_issues_count":1,"forks_count":2,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-21T11:57:25.768Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Julia","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FixedEffects.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-07-24T18:58:22.000Z","updated_at":"2021-10-06T13:51:52.000Z","dependencies_parsed_at":"2023-02-16T09:30:27.960Z","dependency_job_id":null,"html_url":"https://github.com/FixedEffects/GroupedArrays.jl","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/FixedEffects/GroupedArrays.jl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FixedEffects%2FGroupedArrays.jl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FixedEffects%2FGroupedArrays.jl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FixedEffects%2FGroupedArrays.jl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FixedEffects%2FGroupedArrays.jl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FixedEffects","download_url":"https://codeload.github.com/FixedEffects/GroupedArrays.jl/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FixedEffects%2FGroupedArrays.jl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280256227,"owners_count":26299342,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-21T02:00:06.614Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-10-21T11:57:22.117Z","updated_at":"2025-10-21T11:57:26.650Z","avatar_url":"https://github.com/FixedEffects.png","language":"Julia","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build status](https://github.com/FixedEffects/GroupedArrays.jl/workflows/CI/badge.svg)](https://github.com/FixedEffects/GroupedArrays.jl/actions)\n\n## Installation\nThe package is registered in the [`General`](https://github.com/JuliaRegistries/General) registry and so can be installed at the REPL with \n\n`] add GroupedArrays`.\n\n## Introduction\nGroupedArray is an AbstractArray that contains positive integers or missing values.\n- `GroupedArray(x::AbstractArray)` returns a `GroupedArray` of the same length as the original array, where each distinct value is encoded as a distinct integer.\n- `GroupedArray(xs...::AbstractArray)` returns a `GroupedArray` where each distinct combination of values is encoded as a distinct integer \n- By default (with `coalesce = false`), `GroupedArray` encodes `missing` values as a distinct `missing` category. With `coalesce = true`, missing values are treated similarly to other values.\n\n## Examples\n\n  ```julia\n  using GroupedArrays\n  p = repeat([\"a\", \"b\", missing], outer = 2)\n  GroupedArray(p)\n  # 6-element GroupedArray{Int64, 1}:\n  #  1\n  #  2\n  #   missing\n  #  1\n  #  2\n  #   missing\n  p = repeat([\"a\", \"b\", missing], outer = 2)\n  GroupedArray(p; coalesce = true)\n  # 6-element GroupedArray{Int64, 1}:\n  #  1\n  #  2\n  #  3\n  #  1\n  #  2\n  #  3\n  p1 = repeat([\"a\", \"b\"], outer = 3)\n  p2 = repeat([\"d\", \"e\"], inner = 3)\n  GroupedArray(p1, p2)\n  # 6-element GroupedArray{Int64, 1}:\n  #  1\n  #  2\n  #  1\n  #  3\n  #  4\n  #  3\n  ```\n\n## Relation to other packages\n- `GroupedArray` is similar to `PooledArray`, except that the pool is simply the set of integers from 1 to n where n is the number of groups(`missing` is encoded as 0). This allows for faster lookup in setups where the group value is not meaningful.\n- The algorithm to group multiple vectors is taken from [DataFrames.jl](https://github.com/JuliaData/DataFrames.jl)\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffixedeffects%2Fgroupedarrays.jl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffixedeffects%2Fgroupedarrays.jl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffixedeffects%2Fgroupedarrays.jl/lists"}