r - Combine N matrices using loop funciton -



r - Combine N matrices using loop funciton -

i have problem in combining 90 matrices single matrix using loop function. created matrix called "col", , created remaining 89 matrices using code below

for (k in 1:89){ col[k,]<-row colk<-col }

the dimension of col 90x4. , since colk created replacing first k rows of col (0,0,0,0). i.e drop first k rows.

now want combine combine these 90 matrices single matrix of dimension 90x360. code using is

col0<-col for(k in 0:89) { matrixreview<-cbind(colk) } dim(matrixreview) ## [1] 90 4

however, can see, dimension of matrixreview 90x4 rather 90x360. there problem when utilize loop. since new r, don't know how solve problem. can give me help? in advance.

r matrix

Comments

Popular posts from this blog

maven fortify plugin : Unable to load build session with ID XXXXX .. See log file for more details -

c# - Primavera WebServices does not return any data -

android - Display emoji panel with genymotion - keyboard/touch input? -