rpart2r: Metaprogramming function to return R code from rpart object

Description Usage Arguments Examples

View source: R/rpart2r.R

Description

Metaprogramming function to return R code from rpart object

Usage

1
rpart2r(frame, f_depth = 1, f_row_order = 1, sep_char = " ")

Arguments

frame

This should be rpart$frame that has been supplied by prepare_rpart4code.R

f_depth

Please don't change this. It's only meant to change itself during recursion.

f_row_order

Please don't change this. It's only meant to change itself during recursion.

Examples

1
prepare_rpart4code(tree_2010_2015) %>% rpart2r() %>% message()

jakubkovac/Lori documentation built on Jan. 9, 2020, 9:49 p.m.