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
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
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 -
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)
}
}
4 matches
Mail list logo