I appreciate the responses from B.Ripley, B.Biggerstaff,
P.Joyet,Z.T.Taylor,A.Liaw,P.Chartraw, and A.Sinclair.
You all point to essentially the same solution.
tmp is a data frame. To replicate its rows 3 times,
nr <- nrow(tmp)
newtmp <- tmp[ rep(1:nr, rep(3,nr)), ]
However, the row names of newtmp are not sequence of
number from 1 to 3*nr.
To stack the entire data frame 3 times,
newtmp2 <- tmp[ rep(1:nr, 3), ]
Same warning on the row names.
Thank you for all your help.
Winson Taam
Department of Math. & Stat.
Oakland University
Rochester, MI 48309
tel: 248-370-3438
-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message: unsubscribe s-news
|