An rpart regression tree carries the deviance around (in the frame$dev element). This function computes the deviance for classification trees.
An object of class rpart
Other arguments, currently unused.
For a vector of leaf counts n whose sum is N, the deviance is (-2) times the sum of n log (n/N), taking 0 log 0 as 0.
Vector of deviances for every row in the tree's frame.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.