Skip to content
This package was removed from CRAN on 2020-06-15. Its history is shown below.
Reason: check problems were not corrected in time
Details below reflect version 0.1.1, its last release before removal.

tree.bins

0.1.1

Recategorization of Factor Variables by Decision Tree Leaves

0packages depend
downloads / year
test coverage
checks pass

Overview

About
Maintained by Piro Polo2 releasesCRAN page ↗

Provides users the ability to categorize categorical variables dependent on a response variable. It creates a decision tree by using one of the categorical variables (class factor) and the selected response variable. The decision tree is created from the rpart() function from the 'rpart' package. The rules from the leaves of the decision tree are extracted, and used to recategorize the appropriate categorical variable (predictor). This step is performed for each of the categorical variables that is fed into the data component of the function. Only variables containing more than 2 factor levels will be considered in the function. The final output generates a data set containing the recategorized variables or a list containing a mapping table for each of the candidate variables. For more details see T. Hastie et al (2009, ISBN: 978-0-387-84857-0).

Install

Health

CRAN checks

CRAN check results are not tracked yet.

Code health
Yes
Tests · ratio 0.67
not tracked
Coverage
100%
Documentation · exports
4
Dependencies · direct

Documentation

Documentation
READMENoVignettesYes · dynamicpkgdown siteNoNEWSNoCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
100%
Return-value docs
0%
References docs
0%

Downloads

tree.bins
Daily download trend is not available in this view yet.

Dependencies

Declared dependencies
9 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.4.0
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
indirect (not tracked)

Nothing depends on this yet.

Code & Tests

Datasets

People & History

People (1)
Maintainer (1)
Author, Maintainer
Authors (1)
Author, Maintainer
Package Timeline

2 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.1.0 released · 2021-05-18
  • archivedRemoved from CRAN
    2020-06-15
    check problems were not corrected in time
  • R
    R 4.0.0 released · 2020-04-24
  • R
    R 3.6.0 released · 2019-04-26
  • 0.1.1
    2018-06-14 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • 0.1.0
    2018-02-26
  • R
    R 3.4.0 released · 2017-04-21

Package metadata

Total releases
2
License
GPL-2 OSI
Minimum R
≥ 3.4.0
Bundled data
218 KB / 3 files
Download size
not tracked yet
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("tree.bins")
Polo, P. (n.d.). tree.bins: Recategorization of Factor Variables by Decision Tree Leaves (Version 0.1.1) [Computer software]. Retrieved August 14, 2026, from https://CRAN.R-project.org/package=tree.bins

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for tree.bins version 0.1.1 [Data set]. HJJB, LLC. Data release v2026-08-13. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-13, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy