applies a PCA model, calculated with a first dataset, to a second dataset
xscores=pcaapply(model,x,(dim))
a model obtained by a PCA calculated for a first dataset
a new dataset; x or x.d is a matrix (n x p)
the number of eigenvectors (by default: p)
the scores of the observations of x, according to the eigenvectors of model
xscores.d is a matrix (n x p) by default, and (n x dim) if dim is given