Hi,

 

I have a test_table where the dim is 62220 by 73 (row by col)

 

I would like to partition the rows into 170 equal parts (170 tables
where each is of dim 366 by 73), and rearrange them horizontally. The
source codes I have:

 

for (i in 1:170) {

            c = cbind(c,test_table[(367*i+1):(367*(i+1)),2:73]);

      }

 

Unfortunately, using for loop and cbind for a table of this size causes
long running time.  What is the most efficient way to get the table that
I want? 

 

Thanks for any help.

K.




-----------------------------------------
CONFIDENTIALITY NOTICE: This message and any attachments rel...{{dropped}}

