[R] Problem with random number simulation
Nordlund, Dan (DSHS/RDA)
NordlDJ at dshs.wa.gov
Mon Jul 25 19:38:48 CEST 2011
> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of Petr PIKAL
> Sent: Monday, July 25, 2011 9:05 AM
> To: AriGold
> Cc: r-help at r-project.org
> Subject: Re: [R] Problem with random number simulation
>
> Hi
>
> 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
> get
> > 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
> either.
> > I type "x" afterwards and nothing happens.
>
>
> I got many errors the first one is
>
> + {
> + if(y[count]<a)
> Error: unexpected ';' in:
> " {
> if(y[count]<"
> > {
> +
>
> And it is really difficult to debug such code in R. Maybe you could put
> it
> in a function and try
>
> ?debug
>
> to see what values you get in each line of code
>
> Regards
> Petr
>
>
>
> >
> > I can add comments but I don't know how to edit the original post.
> >
> >
> >
I don't use Nabble, and I think that is the case for most of the people that _I_ find to be most knowledgeable and helpful. When replying from Nabble, I think posts can be quoted, and comments could be added at that point. Another problem with Nabble is that it sends HTML by default (I think), which is not appropriate for this list. At least, that is the problem that Petr ran into above. The error message that he ran into was due to a less than sign being sent as an html equivalent, < , which obviously R will choke on. Again, if the OP would follow the posting guide and "provide commented, minimal, self-contained, reproducible code" (that includes no HTML), someone may be willing and able to help.
Dan
Daniel J. Nordlund
Washington State Department of Social and Health Services
Planning, Performance, and Accountability
Research and Data Analysis Division
Olympia, WA 98504-5204
More information about the R-help
mailing list