[R] Problem with random number simulation

Petr PIKAL petr.pikal at precheza.cz
Mon Jul 25 18:04:56 CEST 2011


r-help-bounces at r-project.org napsal dne 25.07.2011 05:23:51:

> Re: [R] Problem with random number simulation
> Hi,
> I was just hoping someone could try running the program to see if they 
> any output.  This is independent research.  I just need to run this
> simulation to see how a computer could be manipulated given certain
> conditions in the Von Neumann game.
> Currently, my code is not giving any errors, but there is no output 
> I type "x" afterwards and nothing happens. 

I got many errors the first one is

+                 {
+                         if(y[count]<a)
Error: unexpected ';' in:
"                {
>                         {

And it is really difficult to debug such code in R. Maybe you could put it 
in a function and try 


to see what values you get in each line of code


> I can add comments but I don't know how to edit the original post.
> --
> View this message in context: 
> random-number-simulation-tp3691308p3691619.html
> Sent from the R help mailing list archive at Nabble.com.
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide 
> and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list