Hi Peng, Gabor & Peter, Thank you very much for replying me so soon. I will try it right now! -- View this message in context: http://r.789695.n4.nabble.com/How-to-project-a-vector-on-a-subspace-tp2530886p2532388.html Sent from the R help mailing list archive at Nabble.com.