[R] For Loop

Erik Iverson eriki at ccbr.umn.edu
Thu Aug 5 15:17:24 CEST 2010


Hello,

Please read the posting guide found at the bottom of every post to
this list.  We need to be able to see a small, reproducible example
of code that illustrates your question.

It sounds like you might be looking for ?replicate.

On 08/05/2010 03:47 AM, Turn & Fall wrote:
>
> I have some code that is working.
>
> The code calculates the error from the real vale when it does a run.
>
> The error in metres in called
>
> errorxy
>
>
> I want to do 10 runs of the code and everytime it does a run I want to an
> output of the errorxy, so that it can form an array.
>
> I am guessing I should use a for loop around the entire set of code?
>
> Any help?



More information about the R-help mailing list