Re: [R] matrix form

2005-07-29 Thread Adaikalavan Ramasamy
If you mean how to create a matrix like below, then you can code it as arm - 1:10 study - rep( 1:4, c(3,3,2,2) ) Num - c(2, 9, ...) df - cbind( arm, study, Num ) but this is really painful. If you have this information stored in Excel, save it as tab delimited or comma separated

[R] matrix form

2005-07-28 Thread Hathaikan Chootrakool
I am a new user, i was wondering how to define a collection of data in matrix form, this is a part of my data,there are 26 studies, 3 Treatments Arm No Study no. Treatment Num(r) Total(n) 111 1 243 221 2 942 331