Nice!

I noticed that in generated structure it has two attributes 
attr(,"scaled:center") and attr(,"scaled:scale")
How can I access them ? 

R





Giovanni Petris <GPetris@uark.edu>
10/24/2003 02:50 PM
Please respond to Giovanni Petris

 
        To:     Ryszard Czerminski/PH/Novartis@PH
        cc:     r-help@stat.math.ethz.ch
        Subject:        Re: [R] how to remove NaN columns ?



> > xs <- lapply(xdata, function(x){(x - mean(x))/sqrt(var(x))})

Incidentally, the function 'scale' does just that.

-- 

 __________________________________________________
[                                                  ]
[ Giovanni Petris                 GPetris@uark.edu ]
[ Department of Mathematical Sciences              ]
[ University of Arkansas - Fayetteville, AR 72701  ]
[ Ph: (479) 575-6324, 575-8630 (fax)               ]
[ http://definetti.uark.edu/~gpetris/              ]
[__________________________________________________]




	[[alternative HTML version deleted]]


