{"id":23526022,"url":"https://github.com/hughparsonage/factor256","last_synced_at":"2025-08-01T20:33:30.632Z","repository":{"id":83911791,"uuid":"400499779","full_name":"HughParsonage/factor256","owner":"HughParsonage","description":null,"archived":false,"fork":false,"pushed_at":"2023-11-17T10:02:03.000Z","size":67,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-22T10:40:53.442Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HughParsonage.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2021-08-27T12:20:52.000Z","updated_at":"2023-11-19T22:57:26.000Z","dependencies_parsed_at":"2024-12-25T19:13:31.202Z","dependency_job_id":null,"html_url":"https://github.com/HughParsonage/factor256","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"HughParsonage/rpkg","purl":"pkg:github/HughParsonage/factor256","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HughParsonage%2Ffactor256","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HughParsonage%2Ffactor256/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HughParsonage%2Ffactor256/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HughParsonage%2Ffactor256/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HughParsonage","download_url":"https://codeload.github.com/HughParsonage/factor256/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HughParsonage%2Ffactor256/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268291564,"owners_count":24226901,"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-08-01T02:00:08.611Z","response_time":67,"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":"2024-12-25T19:13:26.418Z","updated_at":"2025-08-01T20:33:30.586Z","avatar_url":"https://github.com/HughParsonage.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"100%\"\n)\n```\n\n# factor256\n\n\u003c!-- badges: start --\u003e\n\u003c!-- badges: end --\u003e\n\nThe goal of factor256 is to minimize the memory footprint of data analysis that\nuses categorical variables with fewer than 256 unique values.\n\n## Installation\n\nYou can install the development version of factor256 from [GitHub](https://github.com/) with:\n\n``` r\n# install.packages(\"devtools\")\ndevtools::install_github(\"HughParsonage/factor256\")\n```\n\n## Example\n\nThis is a basic example which shows you how to solve a common problem:\n\n```{r basic-example}\nlibrary(factor256)\nx \u003c- factor256(LETTERS)\ntypeof(x)\nidentical(recompose256(x), LETTERS)\n```\n\n```{r data-example}\nlibrary(data.table)\nDT \u003c-\n  CJ(Year = 2000:2020,\n     State = rep_len(c(\"WA\", \"SA\", \"NSW\", \"NT\", \"TAS\", \"VIC\", \"QLD\"), 1000),\n     Age = rep_len(0:100, 10000))\n# pryr::object_size(DT)\n# 3.36GB\nfor (j in seq_along(DT)) {\n  set(DT, j = j, value = factor256(.subset2(DT, j)))\n}\n# pryr::object_size(DT)\n# 630 MB\n```\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhughparsonage%2Ffactor256","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhughparsonage%2Ffactor256","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhughparsonage%2Ffactor256/lists"}