tidyRules {tidyrules}R Documentation

Obtain rules as a tidy tibble

Description

Each row corresponds to a rule. A rule can be copied into 'dplyr::filter' to filter the observations corresponding to a rule

Usage

tidyRules(object, col_classes = NULL, ...)

Arguments

object

Fitted model object with rules

col_classes

Named list or a named character vector of column classes. Column names of the data used for modeling form the names and the respective classes for the value. One way of obtaining this is by running 'lapply(data, class)'.

...

Other arguments (currently unused)

Details

tidyRule supports these rule based models: C5, Cubist and rpart.

Value

A tibble where each row corresponds to a rule

Author(s)

Srikanth KS, sri.teach@gmail.com


[Package tidyrules version 0.1.5 Index]