library(dplyr)
library(knitr)
library(rpart)
library(neato)

Introduction

This is the draft vignette for the package neato.

It's probably going to have a bunch of different sections, like plotting, and tables and that sort of thing.

Using importance_table

So here's the go for importance table, you want to get the variable importance information, and here's how you can do it.

First, let's take an rpart fitted object

fit.rpart <- rpart(Kyphosis ~ Age + Number + Start, data = kyphosis)

And let's turn it into an importance table

importance_table(fit.rpart)

You can even use the pipe operator %>%

fit.rpart %>% importance_table

And then if you want you can make a table using the kable function from knitr

fit.rpart %>% importance_table %>% kable


njtierney/neato documentation built on May 23, 2019, 8:22 p.m.