search for: dt_l

Displaying 1 result from an estimated 1 matches for "dt_l".

Did you mean: dt_
2009 May 18
1
Using apply() and scale() in combination
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 of this matrix into standardised values (mean 0, sd 1). I believe the command for doing this is "scale()", with the defaults for this function being to set mean at 0 and sd a...