Re: [R] Constructing a matrix of outputs from loop

2013-07-08 Thread David Winsemius
ilto:r-help-boun...@r-project.org] On Behalf Of Edward Patzelt >> Sent: Monday, July 8, 2013 3:15 PM >> To: r-help@r-project.org >> Subject: [R] Constructing a matrix of outputs from loop >> >> R - >> >> I would like to construct a matrix from the output

Re: [R] Constructing a matrix of outputs from loop

2013-07-08 Thread Bert Gunter
y > Texas A&M University > College Station, TX 77840-4352 > > -Original Message- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of Edward Patzelt > Sent: Monday, July 8, 2013 3:15 PM > To: r-help@r-project.org > Subjec

Re: [R] Constructing a matrix of outputs from loop

2013-07-08 Thread David Carlson
Behalf Of Edward Patzelt Sent: Monday, July 8, 2013 3:15 PM To: r-help@r-project.org Subject: [R] Constructing a matrix of outputs from loop R - I would like to construct a matrix from the output of a loop that has 2 values it varies over the course of the loop creating a 20x20 matrix of output

[R] Constructing a matrix of outputs from loop

2013-07-08 Thread Edward Patzelt
R - I would like to construct a matrix from the output of a loop that has 2 values it varies over the course of the loop creating a 20x20 matrix of output values: ap = logspace(-3, 0, 20) am = logspace(-3, .7, 20) for (ap in apList) { for (am in amList) { output = func(ap, am) } }