Re: [R] Using apply() and scale() in combination

2009-05-18 Thread Peter Alspach
nd case. You can, of course, transpose the result using t(). HTH . Peter Alspach > -Original Message- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of Armin Raznahan > Sent: Tuesday, 19 May 2009 9:44 a.m. > To: r-help@r-project

[R] Using apply() and scale() in combination

2009-05-18 Thread Armin Raznahan
Hello I am an R newbie, and am coming against a couple of problems when I try and apply the scale function across all the rows of a matrix. - #I have a matrix "dt_l". > str(dt_l) num [1:40962, 1:885] 3.04 4.1 3.4 3.58 3.77 ... #I want to convert the values in each row