Your results show that you have a rank 2 matrix. > $rank > [1] 2
Therefore the third column of Q for your x is arbitrary. A better example would be x <- matrix(rnorm(12), 4, 3) qr(x) Rich ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.