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

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -