[R] Rep command
Roger Peng
rpeng at stat.ucla.edu
Fri Apr 25 22:41:04 CEST 2003
That's not a bug, but the internal representation of the date as the
number of seconds since the beginning of 1970. See ?DateTimeClasses. I
guess rep coerces the argument to be numeric.
-roger
_______________________________
UCLA Department of Statistics
http://www.stat.ucla.edu/~rpeng
On Fri, 25 Apr 2003, Shawn Way wrote:
> 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
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
>
More information about the R-help
mailing list