Re: [R] Ifelse leading to inconsistent result

2013-06-26 Thread Neville O'Reilly
NJ 08854. 848-445-7669 http://fsrm.rutgers.edu/ - Original Message - From: "David Carlson" To: "Neville O'Reilly" , 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 yo

Re: [R] Ifelse leading to inconsistent result

2013-06-26 Thread David Carlson
-- David L Carlson Associate Professor of Anthropology Texas A&M 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

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 indic

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 values

[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 the