Skip to content
Prev 369775 / 398503 Next

IF LOOOP

Hi Matthias.
The first thing I notice is that the vector r:

r<-c(1.1717118,1.1605215,1.1522907,1.1422830,1.1065277,1.1165451,
 1.1163768,1.1048872,1.0848836,1.0627211,1.0300964,1.0296879,
 1.0308194,1.0518188,1.0657229,1.0685514,1.0914881,1.1042577,
 1.1039351,1.0880163)

doesn't contain the value 0.990956. If it ain't there, you can't
remove it. It has already been suggested that the failure of any
explicit value like 0.990956 to equal its displayed representation is
due to machine precision. I'll guess that you really want to remove a
range of values, something like those less than 1.000000. If so, try
this:

r[r>=1]

Jim
On Wed, Jun 14, 2017 at 6:46 AM, matthias worni <mat.worni at gmail.com> wrote: