[R] How to generate multiple squre Orthogonal matrices?

Spencer Graves spencer.graves at pdf.com
Fri Feb 28 06:45:04 CET 2003


k <- 5
tstMat <- array(runif(k), dim=c(k,k))
tstOrth <- qr.Q(qr(tstMat))
t(tstOrth)%*%tstOrth

Is this what you want?
Spencer Graves

Feng Zhang wrote:
> Hey, all
> 
> Will you please tell me how to generate multiple
> square orthogonal matrices for data transformation usage?
> 
> Thanks.
> 
> Fred
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> http://www.stat.math.ethz.ch/mailman/listinfo/r-help




More information about the R-help mailing list