# NOT RUN {
x = matrix(rnorm(200*3), ncol = 10)
colnames(x) = paste0("C", 1:ncol(x))
# compute the relative differences for row 5 and return all variables
x %>%
mahalanobis_distance("bd", normalize = TRUE) %>%
bd_row(5)
# compute the relative differences for row 5 and return the top 3 variables
# that are influencing the Mahalanobis Distance the most
x %>%
mahalanobis_distance("bd", normalize = TRUE) %>%
bd_row(5, 3)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab