the following code: m<-matrix(nrow=10,ncol=10) i<-1001 mx<-trunc(i/1000) my<-(i/1000-mx)*1000 m[mx,my]<-1
does not assign the value at the matrix m[1,1] Any hints? Thanks v -- View this message in context: http://www.nabble.com/Matrix-set-value-problem-tp18253809p18253809.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.