There is a code written in R 2.15 and it works fine but when we copy to another PC with R 3.6 it errors I'm not familiar with R syntax so please tell me that what does every part do and why this error occurs Thanks
f <- function(x) mlv(x, method = "discrete")$M[1]
$ operator is invalid for atomic vectors