Description Usage Arguments Value

View source: R/compute_shattering.R

Using a recursion function as auxiliar function, calculates the shattering coefficient for a rpart decision tree.

1 | ```
compute_shattering(rpart.tree, n_samples)
``` |

`rpart.tree` |
rpart.tree. A Decision tree generated by rpart package. |

`n_samples` |
int. The # of samples to consider in dataset. |

The calculus of the shattering coefficient.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.