tidyRules: Obtain rules as a tidy tibble

Description Usage Arguments Details Value Author(s)

View source: R/generic.R

Description

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

Usage

1
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


tidyrules documentation built on July 1, 2020, 5:49 p.m.