{"id":13857512,"url":"https://github.com/njtierney/broomstick","last_synced_at":"2025-03-21T11:33:45.002Z","repository":{"id":56687795,"uuid":"101183045","full_name":"njtierney/broomstick","owner":"njtierney","description":":evergreen_tree: broom helpers for decision tree methods (rpart, randomForest, and more!) :evergreen_tree:","archived":false,"fork":false,"pushed_at":"2023-12-03T06:27:24.000Z","size":91,"stargazers_count":28,"open_issues_count":8,"forks_count":1,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-10-12T21:19:47.885Z","etag":null,"topics":["broom","decision-trees","gbm","machine-learning","randomforest","rpart","rstats","statistical-learning"],"latest_commit_sha":null,"homepage":"http://broomstick.njtierney.com/","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/njtierney.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"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-08-23T13:27:12.000Z","updated_at":"2024-02-06T13:47:34.000Z","dependencies_parsed_at":"2022-08-15T23:20:30.686Z","dependency_job_id":null,"html_url":"https://github.com/njtierney/broomstick","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/njtierney%2Fbroomstick","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/njtierney%2Fbroomstick/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/njtierney%2Fbroomstick/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/njtierney%2Fbroomstick/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/njtierney","download_url":"https://codeload.github.com/njtierney/broomstick/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221815084,"owners_count":16885114,"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":["broom","decision-trees","gbm","machine-learning","randomforest","rpart","rstats","statistical-learning"],"created_at":"2024-08-05T03:01:39.330Z","updated_at":"2024-10-28T10:06:41.498Z","avatar_url":"https://github.com/njtierney.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 = \"README-\"\n)\n```\n\n# broomstick\n\n\u003c!-- badges: start --\u003e\n[![R build status](https://github.com/njtierney/broomstick/workflows/R-CMD-check/badge.svg)](https://github.com/njtierney/broomstick/actions)\n[![Codecov test coverage](https://codecov.io/gh/njtierney/broomstick/branch/master/graph/badge.svg)](https://codecov.io/gh/njtierney/broomstick?branch=master)\n[![R-CMD-check](https://github.com/njtierney/broomstick/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/njtierney/broomstick/actions/workflows/R-CMD-check.yaml)\n\u003c!-- badges: end --\u003e\n\nConvert decision tree objects into tidy data frames with `broomstick`.\n\nThe goal of broomstick is to extend the [`broom`](https://github.com/tidyverse/broom) package to work with decision trees. It is currently borrowing heavily from the prototype package [`treezy`](https://github.com/njtierney/treezy).\n\n## Installation\n\nYou can install broomstick from github with:\n\n```{r gh-installation, eval = FALSE}\n# install.packages(\"remotes\")\nremotes::install_github(\"njtierney/broomstick\")\n```\n\n## Examples\n\n## rpart\n\n```{r example-rpart}\nlibrary(rpart)\nlibrary(broomstick)\n\nfit_rpart \u003c- rpart(Kyphosis ~ Age + Number + Start, \n                   data = kyphosis)\n\ntidy(fit_rpart)\naugment(fit_rpart)\n```\n\n\n## gbm (Boosted Regression Tree)\n\n```{r example-gbm}\nlibrary(gbm)\nlibrary(MASS)\nfit_gbm \u003c- gbm(calories ~., data = UScereal)\n\ntidy(fit_gbm)\n```\n\n## random forest\n\n```{r example-rf}\nlibrary(randomForest)\nozone_rf \u003c- randomForest(Ozone ~ ., \n                         data = airquality, \n                         importance = TRUE,\n                         na.action = na.omit)\ntidy(ozone_rf)\nglance(ozone_rf)\naugment(ozone_rf)\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnjtierney%2Fbroomstick","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnjtierney%2Fbroomstick","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnjtierney%2Fbroomstick/lists"}