{"id":13425214,"url":"https://github.com/tidymodels/recipes","last_synced_at":"2026-04-03T00:04:04.176Z","repository":{"id":38628506,"uuid":"76614863","full_name":"tidymodels/recipes","owner":"tidymodels","description":"Pipeable steps for feature engineering and data preprocessing to prepare for modeling","archived":false,"fork":false,"pushed_at":"2025-04-24T18:09:25.000Z","size":75214,"stargazers_count":590,"open_issues_count":38,"forks_count":115,"subscribers_count":24,"default_branch":"main","last_synced_at":"2025-05-06T16:32:17.392Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://recipes.tidymodels.org","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/tidymodels.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-12-16T02:40:24.000Z","updated_at":"2025-05-02T05:28:09.000Z","dependencies_parsed_at":"2023-09-27T02:33:42.305Z","dependency_job_id":"56a49fe0-da77-4a66-accf-d8b2336bc47f","html_url":"https://github.com/tidymodels/recipes","commit_stats":{"total_commits":1788,"total_committers":75,"mean_commits":23.84,"dds":0.5878076062639821,"last_synced_commit":"254bf413346da8b6377ed7628c1c807378033a6a"},"previous_names":[],"tags_count":26,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tidymodels%2Frecipes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tidymodels%2Frecipes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tidymodels%2Frecipes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tidymodels%2Frecipes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tidymodels","download_url":"https://codeload.github.com/tidymodels/recipes/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254020658,"owners_count":22000757,"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","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-07-31T00:01:07.511Z","updated_at":"2026-04-03T00:04:04.148Z","avatar_url":"https://github.com/tidymodels.png","language":"R","funding_links":[],"categories":["R","HTML"],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n```{r}\n#| echo: false\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\"\n)\n```\n\n# recipes \u003ca href='https://recipes.tidymodels.org'\u003e\u003cimg src='man/figures/logo.png' align=\"right\" height=\"139\" /\u003e\u003c/a\u003e\n\n\u003c!-- badges: start --\u003e\n[![R-CMD-check](https://github.com/tidymodels/recipes/workflows/R-CMD-check/badge.svg)](https://github.com/tidymodels/recipes/actions)\n[![Codecov test coverage](https://codecov.io/gh/tidymodels/recipes/graph/badge.svg)](https://app.codecov.io/gh/tidymodels/recipes)\n[![CRAN_Status_Badge](https://www.r-pkg.org/badges/version/recipes)](https://CRAN.R-project.org/package=recipes)\n[![Downloads](https://cranlogs.r-pkg.org/badges/recipes)](https://CRAN.R-project.org/package=recipes)\n[![lifecycle](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://lifecycle.r-lib.org/articles/stages.html)\n\u003c!-- badges: end --\u003e\n\n## Introduction\n\nWith recipes, you can use [dplyr](https://dplyr.tidyverse.org/)-like pipeable sequences of feature engineering steps to get your data ready for modeling. For example, to create a recipe containing an outcome plus two numeric predictors and then center and scale (\"normalize\") the predictors:\n\n```{r}\n#| label: simple\n#| message: false\nlibrary(recipes)\ndata(ad_data, package = \"modeldata\")\n\nad_rec \u003c- recipe(Class ~ tau + VEGF, data = ad_data) |\u003e\n  step_normalize(all_numeric_predictors())\n\nad_rec\n```\n\nMore information on recipes can be found at the [_Get Started_](https://www.tidymodels.org/start/recipes/) page of [tidymodels.org](https://www.tidymodels.org). \n\nYou may consider recipes as an alternative method for creating and preprocessing design matrices (also known as model matrices) that can be used for modeling or visualization. While R already has long-standing methods for creating such matrices (e.g. [formulas](https://rviews.rstudio.com/2017/02/01/the-r-formula-method-the-good-parts/) and `model.matrix`), there are some [limitations to what the existing infrastructure can do](https://rviews.rstudio.com/2017/03/01/the-r-formula-method-the-bad-parts/). \n\n## Installation\n\nThere are several ways to install recipes:\n\n```{r}\n#| eval: false\n# The easiest way to get recipes is to install all of tidymodels:\ninstall.packages(\"tidymodels\")\n\n# Alternatively, install just recipes:\ninstall.packages(\"recipes\")\n\n# Or the development version from GitHub:\n# install.packages(\"pak\")\npak::pak(\"tidymodels/recipes\")\n```\n\n## Contributing\n\n- For questions and discussions about tidymodels packages, modeling, and machine learning, please [post on RStudio Community](https://forum.posit.co/c/ml/15).\n\n- If you think you have encountered a bug, please [submit an issue](https://github.com/tidymodels/recipes/issues).\n\n- Either way, learn how to create and share a [reprex](https://reprex.tidyverse.org/articles/articles/learn-reprex.html) (a minimal, reproducible example), to clearly communicate about your code.\n\n- Check out further details on [contributing guidelines for tidymodels packages](https://www.tidymodels.org/contribute/) and [how to get help](https://www.tidymodels.org/help/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftidymodels%2Frecipes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftidymodels%2Frecipes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftidymodels%2Frecipes/lists"}