[R] Rep command
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.
UCLA Department of Statistics
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
> > a
>  "2003-04-24 13:29:15 Central Daylight Time"
> > b <- rep(a,3)
> > b
>  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
More information about the R-help