search for: datestest

Displaying 1 result from an estimated 1 matches for "datestest".

2003 Nov 12
3
Chron, as.POSIXct problem
Dear R list, I noticed the following 'problem' when changing the format of dates created with seq.dates() (from the Chron library) using as.POSIXct() (R 1.8.0 on OSX 10.2.8): > datesTest<-seq.dates(from="10/01/1952", length=3, by="days"); > datesTest [1] 10/01/52 10/02/52 10/03/52 # Now changing the format to show year as 1952. > datesTest<-format(as.POSIXct(datesTest), "%m/%d/%Y") > datesTest [1] "09/30/1952" "10/01/...