[R] Rep command

Shawn Way sway at tanox.com
Fri Apr 25 21:27:53 CEST 2003


I'm trying to use the rep command to replicate a POSIX value, the result is
interesting, maybe a bug?

a <- data$Time[1]
> a
[1] "2003-04-24 13:29:15 Central Daylight Time"
> b <- rep(a,3)
> b
[1] 1051208955 1051208955 1051208955

> version
         _                           
platform i386-pc-mingw32             
arch     i386                        
os       mingw32                     
system   i386, mingw32               
status   Under development (unstable)
major    1                           
minor    7.0                         
year     2003                        
month    03                          
day      10                          
language R                           
> 

I couldn't find this in the bug reports, either...

Shawn Way
Engineering Manager



More information about the R-help mailing list