[R] Possible Bug?

Shawn Way sway at tanox.com
Mon Nov 26 23:28:56 CET 2001


I have this problem with the POSIX functions

>version
         _              
platform i386-pc-mingw32
arch     x86            
os       Win32          
system   x86, Win32     
status                  
major    1              
minor    3.1            
year     2001           
month    08             
day      31             
language R              
> 
> dates <- c("11/20/2001","11/20/2001")
dates <- c("11/20/2001","11/20/2001")
> times <- c("12:00:00 AM","12:00:00 PM")
times <- c("12:00:00 AM","12:00:00 PM")
> x <- paste(dates,times)
x <- paste(dates,times)
> z1 <- strptime(x[1], "%m/%d/%Y %H:%M:%S %p")
z1 <- strptime(x[1], "%m/%d/%Y %H:%M:%S %p")
> z1
z1
[1] "2001-11-20 12:00:00"
> z2 <- strptime(x[2], "%m/%d/%Y %H:%M:%S %p")
z2 <- strptime(x[2], "%m/%d/%Y %H:%M:%S %p")
> z1 == z2
z1 == z2
[1] TRUE
> 

As you can see, this is a problem, I believe...



"Don't rush me, you rush a miracle, you get a rotten miracle." 
-Miracle Max, The Princess Bride


Shawn Way
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://stat.ethz.ch/pipermail/r-help/attachments/20011126/18836e9b/attachment.html


More information about the R-help mailing list