rpart2pseudo_code: Metaprogramming function to return java code from rpart...

Description Usage Arguments Examples

View source: R/rpart2pseudo_code.R

Description

Metaprogramming function to return java code from rpart object

Usage

1
2
3
4
5
6
7
rpart2pseudo_code(
  frame,
  f_depth = 1,
  f_row_order = 1,
  sep_char = " ",
  english_output = c("0", "1")
)

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) %>% rpart2pseudo_code() %>% message()

jakubkovac/Lori documentation built on Feb. 18, 2021, 3:31 a.m.