[R] Strange seq() behavior

Jon Zadra jrz9f at virginia.edu
Tue Nov 25 19:05:53 CET 2008


Hi,

This is really strange.  Can anyone help explain what's going on here 
(on 3 and 7)?

 > targets <- seq(from=.1, to=.9, by=.1)

 > targets[1]==.1
[1] TRUE

 > targets[2]==.2
[1] TRUE

 > targets[3]==.3
[1] FALSE

 > targets[4]==.4
[1] TRUE

 > targets[5]==.5
[1] TRUE

 > targets[6]==.6
[1] TRUE

 > targets[7]==.7
[1] FALSE

 > targets[8]==.8
[1] TRUE

 > targets[9]==.9
[1] TRUE

Thanks,

Jon

-- 
Jon Zadra
Department of Psychology
University of Virginia
P.O. Box 400400
Charlottesville VA 22904
(434) 982-4744
email: zadra at virginia.edu

<http://www.google.com/calendar/embed?src=jzadra%40gmail.com>



More information about the R-help mailing list