lpda.pca computes a PCA to the original data and selects the desired PCs when Variability is supplied
Useful links