Package: tree.bins
Type: Package
Title: Recategorization of Factor Variables by Decision Tree Leaves
Version: 0.1.1
Date: 2018-06-13
Authors@R: person("Piro", "Polo", role = c("aut", "cre"),
	            email = "piropolo98@gmail.com")
Maintainer: Piro Polo <piropolo98@gmail.com>
Description: 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).
License: GPL-2
Encoding: UTF-8
LazyData: TRUE
Depends: R (>= 3.4.0)
Imports: dplyr (>= 0.7.4), rpart (>= 4.1-11), rpart.utils (>= 0.5),
        data.table (>= 1.10.4-3)
RoxygenNote: 6.0.1
Suggests: knitr, rmarkdown, testthat, rpart.plot, ggplot2, ggthemes
VignetteBuilder: knitr
NeedsCompilation: no
Packaged: 2018-06-14 02:23:27 UTC; ppolo
Author: Piro Polo [aut, cre]
Repository: CRAN
Date/Publication: 2018-06-14 05:33:53 UTC
