[R] R2.11.1 seq.int difference between by and length.out

Alexander juschitz_alexander at yahoo.de
Tue Apr 10 15:54:32 CEST 2012


I am working under R2.11.1 Windows and I was wondering why there is a
difference between

seq.int(0,1,by=0.1)[4]-0.3
seq.int(0,1,length.out=11)[4]-0.3 

there is also the fact that

seq(0,1,by=0.1)[4]-0.3
seq(0,1,length.out=11)[4]-0.3 

but I think this can be explained by floating precision... 

Alexander


--
View this message in context: http://r.789695.n4.nabble.com/R2-11-1-seq-int-difference-between-by-and-length-out-tp4545683p4545683.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list