From p.dalgaard at biostat.ku.dk  Tue Apr 20 13:42:44 2004
From: p.dalgaard at biostat.ku.dk (p.dalgaard@biostat.ku.dk)
Date: Tue Apr 20 13:42:46 2004
Subject: [Rd] Re: [R] Unexpected behaviour of identical (PR#6799)
Message-ID: <20040420114244.86AF4104BA@slim.kubism.ku.dk>

"Swinton, Jonathan" <Jonathan.Swinton@astrazeneca.com> writes:

>  # works as expected
> > ac <- c('A','B');
> > identical(ac,ac[1:2])
> [1] TRUE
>  
>  #but
> > af <- factor(ac)
> > identical(af,af[1:2])
> [1] FALSE
> 
> Any opinions?

Did a cross-check with Splus and it doesn't do that , so I think it
qualifies as a bug. Shouldn't be too hard to fix (might lose a little
efficiencty though).

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907


[Rd] Re: [R] Unexpected behaviour of identical (PR#6799)
p.dalgaard@biostat.ku.dk