mat_sub <- function(x){ nc <- ncol(x) for (i in 1:nc){ s <- x[,nc-i]-x[nc] }
Z <- cbind(x,s) Z }
Please help in understand