Full_Name: Gr?goire Talbot Version: 2.7.0 OS: windows 2000 Submission from: (NULL) (147.99.1.149) Try this :> a=seq(from=0.1,to=1,by=0.1) > a[1] 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 Ok> a[1]==0.1[1] TRUE Ok> a[3]==0.3[1] FALSE !!!> a[3][1] 0.3 !!!> a[3]=0.3 > a[3]==0.3[1] TRUE ??????????????????????????
See R FAQ 7.31 and also http://docs.sun.com/source/806-3568/ncg_goldberg.html G. On Mon, Jun 16, 2008 at 06:45:21PM +0200, talbot at clipper.ens.fr wrote:> Full_Name: Gr?goire Talbot > Version: 2.7.0 > OS: windows 2000 > Submission from: (NULL) (147.99.1.149) > > > Try this : > > > a=seq(from=0.1,to=1,by=0.1) > > a > [1] 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 > > Ok > > > a[1]==0.1 > [1] TRUE > > Ok > > > a[3]==0.3 > [1] FALSE > > !!! > > > a[3] > [1] 0.3 > > !!! > > > a[3]=0.3 > > a[3]==0.3 > [1] TRUE > > > ?????????????????????????? > > ______________________________________________ > R-devel at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel-- Csardi Gabor <csardi at rmki.kfki.hu> UNIL DGM
On 6/16/2008 12:45 PM, talbot at clipper.ens.fr wrote:> Full_Name: Gr?goire Talbot > Version: 2.7.0 > OS: windows 2000 > Submission from: (NULL) (147.99.1.149)Not a bug. See FAQ 7.31 (which should really be FAQ 1, I think.) Duncan Murdoch> > > Try this : > >> a=seq(from=0.1,to=1,by=0.1) >> a > [1] 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 > > Ok > >> a[1]==0.1 > [1] TRUE > > Ok > >> a[3]==0.3 > [1] FALSE > > !!! > >> a[3] > [1] 0.3 > > !!! > >> a[3]=0.3 >> a[3]==0.3 > [1] TRUE > > > ?????????????????????????? > > ______________________________________________ > R-devel at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel