Skip to content
Prev 44961 / 398530 Next

R: [R] Change the result data

as.vector is a possible, simple solution
Also use rep() on dimnames(hec.data)[[1]] to get the names vector with
correct length
[,1] [,2] [,3] [,4] [,5]
[1,]    1    4    7   10   13
[2,]    2    5    8   11   14
[3,]    3    6    9   12   15
[1]  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15
[1]  1  4  7 10 13  2  5  8 11 14  3  6  9 12 15


hope this helps,
vito


----- Original Message -----
From: Muhammad Subianto <subianto at cs.uu.nl>
To: <r-help at stat.math.ethz.ch>
Sent: Friday, February 27, 2004 12:28 PM
Subject: [R] Change the result data
http://www.R-project.org/posting-guide.html