Dear all,

I am puzzled by a mystery in working with timeDate.

When I create a data.frame using an array of timeDate objects, the name of
the assigned field gets modified. Also, the values of timeDates are changed
as well.

Below is my session. Notice that I wanted the column to be called "DT".
However, it became "New_York.x..i..". Also, despite of my timezone
being "America/New_York" throughout the session, in the result it is
adjusted as well.

Could you guys please advise?

> require(timeDate)
> Sys.timeDate()
New_York
[1] [2012-10-18 09:58:01]
> x <- data.frame(DT = rep(Sys.timeDate(), 10), VAL = (1:10))
> str(x)
'data.frame':   10 obs. of  2 variables:
 $ New_York.x..i..: POSIXct, format: "2012-10-18 13:58:05" "2012-10-18
13:58:05" ...
 $ VAL            : int  1 2 3 4 5 6 7 8 9 10
> Sys.getenv("TZ")
[1] "America/New_York"

-- 
- Chao

	[[alternative HTML version deleted]]

