data(vehicles)
X <- vehicles[, 1:11]
Y <- vehicles[, 12:15]
X <- scale(X)
Y <- scale(Y) # The scales of Y are vastly different, so scaling is reasonable here
d <- d.select(X, Y, 0.01)
d
if (FALSE) u <- u.rrenv.apweights(X, Y, 2)
if (FALSE) u
Run the code above in your browser using DataLab