Hi R community!
have the dataframa called df a column named MD within this frame. I want to print every df$MD > 5, so that I can see the outliers. (MD = mahalanobis distance)
Code:
for (i in 1:length(df$MD)){
if (df$MD[1:100] > 5){
print(df$MD[1:100]) # value with name
}
}
Error:
There were 50 or more warnings (use warnings() to see the first 50)