Is this what you want:
y - scale(x)
str(x)
int [1:10] 1 2 3 4 5 6 7 8 9 10
str(y)
num [1:10, 1] -1.486 -1.156 -0.826 -0.495 -0.165 ...
- attr(*, scaled:center)= num 5.5
- attr(*, scaled:scale)= num 3.03
y
[,1]
[1,] -1.4863011
[2,] -1.1560120
[3,] -0.8257228
[4,] -0.4954337
On 18/01/2009, at 7:55 PM, Pedro Mardones wrote:
Dear all;
I have a function written in R that returns as a list of values as
output that has associated some user defined attributes to it. How can
hide these attributes when printing the output on screen? I'm using
R-2.8.1 on WinXPit's like
Dear all;
I have a function written in R that returns as a list of values as
output that has associated some user defined attributes to it. How can
hide these attributes when printing the output on screen? I'm using
R-2.8.1 on WinXPit's like hiding the attr of the output from the
scale
3 matches
Mail list logo