Nothing
## Total inertia
## @description Compute a total inertia of a dataset
## @usage inertia(tab)
## @param tab A dataset for which the inertia should be computed.
## @return returns the total inertia of a dataset.
inertie <-function(tab) {
tab<- scale(tab, scale=FALSE)
tab<-as.matrix(tab)
V<-tcrossprod(tab)
sum(diag(V))
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.