[R] Ifelse leading to inconsistent result

2013-06-26 Thread Neville O'Reilly
I have used ifelse in count variables to count the number of times in a simulation the values of a vector of logprice fall within mutually exclusive ranges. However, there is a double count in the result i.e. i am getting output indicating values falling in mutually exclusive ranges. Here is

Re: [R] Ifelse leading to inconsistent result

2013-06-26 Thread Duncan Murdoch
On 26/06/2013 11:40 AM, Neville O'Reilly wrote: I have used ifelse in count variables to count the number of times in a simulation the values of a vector of logprice fall within mutually exclusive ranges. However, there is a double count in the result i.e. i am getting output indicating

Re: [R] Ifelse leading to inconsistent result

2013-06-26 Thread peter dalgaard
On Jun 26, 2013, at 17:40 , Neville O'Reilly wrote: I have used ifelse in count variables to count the number of times in a simulation the values of a vector of logprice fall within mutually exclusive ranges. However, there is a double count in the result i.e. i am getting output

Re: [R] Ifelse leading to inconsistent result

2013-06-26 Thread David Carlson
of Anthropology Texas AM 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 Neville O'Reilly Sent: Wednesday, June 26, 2013 10:41 AM To: r-help@r-project.org Subject: [R] Ifelse leading to inconsistent

Re: [R] Ifelse leading to inconsistent result

2013-06-26 Thread Neville O'Reilly
. 848-445-7669 http://fsrm.rutgers.edu/ - Original Message - From: David Carlson dcarl...@tamu.edu To: Neville O'Reilly norei...@stat.rutgers.edu, r-help@r-project.org Sent: Wednesday, June 26, 2013 1:15:06 PM Subject: RE: [R] Ifelse leading to inconsistent result I don't see that you