Re: [R] protentially serious R error

2012-12-01 Thread Ted Harding
al Message- >> From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- >> project.org] On Behalf Of Ben Bolker >> Sent: Friday, November 30, 2012 7:19 PM >> To: r-h...@stat.math.ethz.ch >> Subject: Re: [R] protentially serious R error >> >> Cuttin

Re: [R] protentially serious R error

2012-12-01 Thread David L Carlson
7843-4352 > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of Ben Bolker > Sent: Friday, November 30, 2012 7:19 PM > To: r-h...@stat.math.ethz.ch > Subject: Re: [R] protentially serious R error > > Cutting and past

Re: [R] protentially serious R error

2012-11-30 Thread Ben Bolker
Cutting and pasting from the R posting guide -- I think this advice has special force when responding to FAQ 7.31 questions (I've seen several within the last few days, and at least two were answered by three different people: When responding to a very simple question, use the following algorithm

Re: [R] protentially serious R error

2012-11-30 Thread arun
30, 2012 4:05 PM Subject: [R] protentially serious R error Hi guy, I have recently encountered a problem while  I was just trying to generate some random numbers with the function "rnorm", the problem is shown below: case 1 > rnorm(20*0.2) [1] -1.2765922 -0.57326

Re: [R] protentially serious R error

2012-11-30 Thread Ted Harding
[See in-line below] On 30-Nov-2012 21:05:23 liuxf wrote: > Hi guy, > I have recently encountered a problem while I was just trying to generate > some random numbers with the function "rnorm", the problem is shown below: >case 1 >> rnorm(20*0.2) > [1] -1.2765922 -0.5732654 -1.2

Re: [R] protentially serious R error

2012-11-30 Thread Sarah Goslee
Potentially serious? Only to you: this looks like R FAQ 7.31 striking again. Here's a hint: identical(20*(1-0.8), 4) and another rnorm(round(20*(1-0.8))) Sarah On Fri, Nov 30, 2012 at 4:05 PM, liuxf wrote: > Hi guy, > I have recently encountered a problem while I was just trying to generat

[R] protentially serious R error

2012-11-30 Thread liuxf
Hi guy, I have recently encountered a problem while I was just trying to generate some random numbers with the function "rnorm", the problem is shown below: case 1 > rnorm(20*0.2) [1] -1.2765922 -0.5732654 -1.2246126 -0.4734006 case 2### *> rnorm(20*(1-0.8)) [1]