Implements Mahalanobis distance measure for outlier detection. In addition to the basic distance measure, boxplots are provided with potential outlier(s) to give an insight into the early stage of data cleansing task.
1 
data 
Dataframe 
from 
Datum point from which the distance is measured 
p 
Percentage to which outlier point(s) is noted (default of 10) 
plot 
Switch for boxplot(s) 
v.index 
Numeric vector indicating column(s) to be printed in the boxplot.
Default value of 
layout 
Numeric vector indicating dimension of boxplots.
Default value of 



Excluded row(s) in row number 

Distance order (decreasing) in row number 

Potential outlier(s) in row number 
DongJoon Lim, PhD
Hair, Joseph F., et al. Multivariate data analysis. Vol. 7. Upper Saddle River, NJ: Pearson Prentice Hall, 2006.
1 2 3 4 5  # Generate a sample dataframe
df < data.frame(replicate(6, sample(0 : 100, 50)))
# go
dm.mahalanobis(df, plot = TRUE)

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.
Please suggest features or report bugs with the GitHub issue tracker.
All documentation is copyright its authors; we didn't write any of that.