Thanks Jim and David.. that was easy! Nic
On 3/19/2011 3:00 PM, jim holtman wrote:
x.mat<- matrix(NA, 95, 55) # create matrixx.mat[cbind(x$xloc, x$yloc)]<- x$totW which(!is.na(x.mat), arr.ind =TRUE)
______________________________________________ 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.