Re: [R] Matrix interesting question!

2010-05-29 Thread Jim Lemon
On 05/29/2010 02:30 AM, UM wrote: hi, I have been trying to do this in R (have implemented it in Excel) but I have been using a very inefficent way (loops etc.). I have matrix A (columns are years and ages are rows) and matrix B (columns are birth yrs and rows are ages) I would like to first

Re: [R] Matrix interesting question!

2010-05-28 Thread David Winsemius
On May 28, 2010, at 12:30 PM, UM wrote: hi, I have been trying to do this in R (have implemented it in Excel) but I have been using a very inefficent way (loops etc.). I have matrix A (columns are years and ages are rows) and matrix B (columns are birth yrs and rows are ages) I would

Re: [R] Matrix interesting question!

2010-05-28 Thread Joshua Wiley
Hi, Can you provide sample data? It seems like in both matrices, you have ages in the rows. Do you just want to calculate birth years in matrix B from ages and years in matrix A? It may also help to give us some of the details of what you are doing once you have transformed it prior to transfor

Re: [R] Matrix interesting question!

2010-05-28 Thread Joris Meys
Provide a minimal example to start with. This sounds more like voodoo than anything else. Cheers Joris On Fri, May 28, 2010 at 6:30 PM, UM wrote: > > hi, > I have been trying to do this in R (have implemented it in Excel) but I > have > been using a very inefficent way (loops etc.). I have matri

[R] Matrix interesting question!

2010-05-28 Thread UM
hi, I have been trying to do this in R (have implemented it in Excel) but I have been using a very inefficent way (loops etc.). I have matrix A (columns are years and ages are rows) and matrix B (columns are birth yrs and rows are ages) I would like to first turn matrix A into matrix B And th