[R] Problem with all.equal and POSIXt.
    Rolf Turner 
    r.turner at auckland.ac.nz
       
    Mon Sep 13 03:28:09 CEST 2010
    
    
  
I'm getting an error when applying all.equal() to objects of
class POSIXt.
E.g.
x <- strptime(rep("2007-02-12",10),format="%Y-%m-%d")
all.equal(x,x)
Error in target[[i]] : subscript out of bounds
The object seems to have to be of double-digit length to trigger the
error.  E.g.
all.equal(x[1:9],x[1:9])
returns TRUE.
I did a cursory search of the r-help pages and found no reference to this
problem.
Is this a bug, or am I missing something?
	cheers,
		Rolf Turner
P. S.: > sessionInfo()
R version 2.11.1 (2010-05-31) 
x86_64-apple-darwin9.8.0 
locale:
[1] en_NZ.UTF-8/en_NZ.UTF-8/C/C/en_NZ.UTF-8/en_NZ.UTF-8
attached base packages:
[1] datasets  utils     stats     graphics  grDevices methods   base     
other attached packages:
[1] misc_0.0-12    fortunes_1.3-7 MASS_7.3-6    
loaded via a namespace (and not attached):
[1] tools_2.11.1
######################################################################
Attention:\ This e-mail message is privileged and confid...{{dropped:9}}
    
    
More information about the R-help
mailing list