[R-sig-Geo] Repeat columns and rows of matrix

az14 abidi.zineb at gmail.com
Fri May 9 15:15:09 CEST 2014


Hi, acctually it's for the (LM tests for spatial panel data).
w is a distance matrix ( wih cut of 70km) . 
M <- matrix(1, nrow=9, ncol=9)
W9 <- kronecker(W, M)
I get this error: 

Erreur dans `dimnames<-.data.frame`(`*tmp*`, value = list(n)) : 
  invalid 'dimnames' given for data frame




--
View this message in context: http://r-sig-geo.2731867.n2.nabble.com/Repeat-columns-and-rows-of-matrix-tp7586408p7586411.html
Sent from the R-sig-geo mailing list archive at Nabble.com.



More information about the R-sig-Geo mailing list