From fabien.roussel at imr.no  Mon Nov 17 10:50:03 2008
From: fabien.roussel at imr.no (fabien.roussel at imr.no)
Date: Mon, 17 Nov 2008 10:50:03 +0100 (CET)
Subject: [Rd] R problem with the seq function (PR#13295)
Message-ID: <20081117095004.067E7283417B@mail.pubhealth.ku.dk>

Hello,

=20

Something wrong happens when I use the seq (function). Here it is an exampl=
e from my R console, I have the R version 2.7.2 (2008-08-25) running on Mic=
rosoft windows XP Version 2002 Service Pack 3, and my machine is a Dell Opt=
ilex GX280 with a processor Intel Pentium 4 CPU 2.80GHhz, 0.99 GB RAM:

=20

=20

>r=3Dseq(0.150,0.180,0.001)

=20

> r[16]

=20

[1] 0.165

=20

> class(r[16])

=20

[1] "numeric"

=20

> for (i in (150:180)/1000)

=20

+  show(which(r=3D=3Di))

=20

[1] 1

[1] 2

[1] 3

[1] 4

[1] 5

[1] 6

[1] 7

[1] 8

[1] 9

[1] 10

[1] 11

[1] 12

[1] 13

[1] 14

[1] 15

integer(0)

integer(0)

integer(0)

integer(0)

integer(0)

integer(0)

integer(0)

[1] 23

[1] 24

[1] 25

[1] 26

[1] 27

[1] 28

[1] 29

[1] 30

[1] 31

=20

Could you explain me why from the 16th element to the 22nd the value is int=
eger (0)  ? I really don't understand... so it would be very nice of you to=
 do it.

=20

Best regards=20

=20

Fabien Roussel,=20

Student=20

Institute of Marine Research Troms=F8

Norway


	[[alternative HTML version deleted]]



[Rd] R problem with the seq function (PR#13295)
fabien.roussel at imr.no