Skip to content
Prev 310958 / 398503 Next

lubridate concatenation issue

On 2012-11-15 18:36, Andre Zege wrote:
It is expected. Look at

  attributes(d)

and

  attributes(c(d))

You'll see that c() removes the 'tzone' attribute.
This is mentioned on the help page for POSIXct.
The only way I know to 'fix' this is to reassign the
attribute:

  e <- c(d)
  attr(e, "tzone") <- "UTC"

But there might a better solution to whatever the real problem is.

Peter Ehlers