{"id":14066674,"url":"https://github.com/bfgray3/cattonum","last_synced_at":"2025-10-22T03:37:56.952Z","repository":{"id":56936242,"uuid":"112980113","full_name":"bfgray3/cattonum","owner":"bfgray3","description":"Encode Categorical Features (unmaintained)","archived":false,"fork":false,"pushed_at":"2022-11-05T01:21:52.000Z","size":217,"stargazers_count":32,"open_issues_count":19,"forks_count":4,"subscribers_count":8,"default_branch":"develop","last_synced_at":"2024-12-04T06:36:42.188Z","etag":null,"topics":["categorical-features","cran","data-science","dummies","encoding","machine-learning","r","r-package","rstats","supervised-learning"],"latest_commit_sha":null,"homepage":"https://CRAN.R-project.org/package=cattonum","language":"R","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/bfgray3.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-04T01:31:46.000Z","updated_at":"2024-04-02T17:43:42.000Z","dependencies_parsed_at":"2022-08-21T06:20:38.278Z","dependency_job_id":null,"html_url":"https://github.com/bfgray3/cattonum","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/bfgray3/cattonum","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfgray3%2Fcattonum","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfgray3%2Fcattonum/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfgray3%2Fcattonum/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfgray3%2Fcattonum/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bfgray3","download_url":"https://codeload.github.com/bfgray3/cattonum/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfgray3%2Fcattonum/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267780010,"owners_count":24143201,"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-07-29T02:00:12.549Z","response_time":2574,"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":["categorical-features","cran","data-science","dummies","encoding","machine-learning","r","r-package","rstats","supervised-learning"],"created_at":"2024-08-13T07:05:12.749Z","updated_at":"2025-10-22T03:37:51.911Z","avatar_url":"https://github.com/bfgray3.png","language":"R","funding_links":[],"categories":["R"],"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, echo = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\"\n)\n```\n\n# cattonum\n\n[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/cattonum)](https://cran.r-project.org/package=cattonum)\n[![R build status](https://github.com/bfgray3/cattonum/workflows/R-CMD-check/badge.svg)](https://github.com/bfgray3/cattonum)\n[![Codecov test coverage](https://codecov.io/gh/bfgray3/cattonum/branch/develop/graph/badge.svg)](https://codecov.io/gh/bfgray3/cattonum?branch=develop)\n[![Total Downloads](http://cranlogs.r-pkg.org/badges/grand-total/cattonum)](https://cran.r-project.org/package=cattonum)\n[![lifecycle](https://img.shields.io/badge/lifecycle-maturing-blue.svg)](https://www.tidyverse.org/lifecycle/#maturing)\n[![Licence](https://img.shields.io/github/license/mashape/apistatus.svg)](http://choosealicense.com/licenses/mit/)\n\n## Special note\n\nI am currently looking for someone who would be interested in becoming the official maintainer of the package. Advanced skill in R or previous package development experience is not necessary. I will be able to help out with code review, etc.  Please comment on [this issue](https://github.com/bfgray3/cattonum/issues/40) if you are interested.\n\n## Summary\n\ncattonum (\"cat to num\") provides different ways to encode categorical features as numerics.  Its goal is to be a one-stop shop for all categorical encoding needs.  It includes the following:\n\n* aggregate function encoding: `catto_aggregate()`\n* dummy encoding: `catto_dummy()`\n* frequency encoding: `catto_freq()`\n* label encoding: `catto_label()`\n* leave-one-out encoding: `catto_loo()`\n* mean encoding: `catto_mean()`\n* median encoding: `catto_median()`\n* one-hot encoding: `catto_onehot()`\n\nThere are many existing packages with which to encode categorical features, including (among others):\n\n* [CatEncoders](https://cran.r-project.org/package=CatEncoders)\n* [dummies](https://cran.r-project.org/package=dummies)\n* [embed](https://github.com/tidymodels/embed)\n* [fastDummies](https://cran.r-project.org/package=fastDummies)\n* [FeatureHashing](https://cran.r-project.org/package=FeatureHashing)\n* [h2o](https://cran.r-project.org/package=h2o)\n* [makedummies](https://cran.r-project.org/package=makedummies)\n* [recipes](https://cran.r-project.org/package=recipes)\n* [vtreat](https://cran.r-project.org/package=vtreat)\n\n## Installation\n\nThe development version can be installed from the `develop` branch on GitHub, which is the default branch.\n\n```{r, eval = FALSE}\nremotes::install_github(\"bfgray3/cattonum\", ref = \"develop\")\n```\n\nThe latest official release can be installed from [CRAN](https://CRAN.R-project.org/package=cattonum).\n\n```{r, eval = FALSE}\ninstall.packages(\"cattonum\")\n```\n\n## Usage\n\n```{r}\nlibrary(cattonum)\ndata(iris)\nhead(catto_loo(iris, response = Sepal.Length))\n```\n\n## Code of Conduct\n\nPlease note that this project is released with a\n[Contributor Code of Conduct](https://github.com/bfgray3/cattonum/blob/develop/.github/CODE_OF_CONDUCT.md).\nBy contributing, you agree to abide by its terms.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbfgray3%2Fcattonum","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbfgray3%2Fcattonum","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbfgray3%2Fcattonum/lists"}