Re: [R] create a matrix with values from data.frame

From: Nicolas Gutierrez <>
Date: Sat, 19 Mar 2011 15:16:58 -0700

Thanks Jim and David.. that was easy!


On 3/19/2011 3:00 PM, jim holtman wrote:

> x.mat<- matrix(NA, 95, 55)  # create matrix

>> x.mat[cbind(x$xloc, x$yloc)]<- x$totW
>> which(!, arr.ind =TRUE) mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Sat 19 Mar 2011 - 22:23:04 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 19 Mar 2011 - 23:40:22 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive