Re: [R] rowSums problem

2012-06-05 Thread alonis10
This is precisely what I needed; I can't believe how simple it is. Thanks! -- View this message in context: http://r.789695.n4.nabble.com/rowSums-problem-tp4632405p4632461.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-projec

Re: [R] rowSums problem

2012-06-05 Thread John Kane
nal Message- > From: vashchyshy...@gmail.com > Sent: Tue, 5 Jun 2012 07:48:51 -0700 (PDT) > To: r-help@r-project.org > Subject: [R] rowSums problem > > I'm having a very frustrating problem, trying to find the inverse > distance > squared weighted interpolants of some

Re: [R] rowSums problem

2012-06-05 Thread Rui Barradas
Hello, The files you've uploaded are the weights file and the results file, not the original temp.csv. So this is untested but it seems you have a standard matrix multiply problem. temp3880W <- temp[, 3:50] %*% weight3880 Hope this helps, Rui Barradas Em 05-06-2012 15:48, alonis10 escreveu

Re: [R] rowSums problem

2012-06-05 Thread alonis10
http://r.789695.n4.nabble.com/file/n4632406/temp3880.csv temp3880.csv http://r.789695.n4.nabble.com/file/n4632406/weight3880.csv weight3880.csv Here are the files I promised to upload. -- View this message in context: http://r.789695.n4.nabble.com/rowSums-problem-tp4632405p4632406.html Sent fr

[R] rowSums problem

2012-06-05 Thread alonis10
I'm having a very frustrating problem, trying to find the inverse distance squared weighted interpolants of some weather data. I have a data frame of weights, which sum to 1. I have attached the weights data. I also have a data frame of temperatures at 48 grid points, which I have also attached.