Re: [R] indexing operation based upon a sequence

2013-02-07 Thread John Smith
j.brae...@uvt.nl > Sent: Thu, 7 Feb 2013 16:41:49 + > To: r-help@r-project.org > Subject: [R] indexing operation based upon a sequence > > Dear R-list, > > > We stumbled upon some weird problem when performing a simple indexing > operation. > Below some example code t

Re: [R] indexing operation based upon a sequence

2013-02-07 Thread Berend Hasselman
R-FAQ 7.31 Berend On 07-02-2013, at 17:41, "J. Braeken" wrote: > Dear R-list, > > > We stumbled upon some weird problem when performing a simple indexing > operation. > Below some example code to illustrate the issue > > #FAILS TO FIND .55 Oo > huh1 = seq(.1,.7,.15);huh1 > # [1] 0.10 0.25

[R] indexing operation based upon a sequence

2013-02-07 Thread J. Braeken
Dear R-list, We stumbled upon some weird problem when performing a simple indexing operation. Below some example code to illustrate the issue #FAILS TO FIND .55 Oo huh1 = seq(.1,.7,.15);huh1 # [1] 0.10 0.25 0.40 0.55 0.70 huh1 == .25 # [1] FALSE TRUE FALSE FALSE FALSE huh1 == .55 # [1] FALSE FA