library(dplyr) library(knitr) library(rpart) library(neato)
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.
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.