[R] Changing x-axis when dealing with time

Ken katakagi at bu.edu
Mon May 16 17:39:06 CEST 2011


Ken <katakagi <at> bu.edu> writes:
> # create "chron"  time vector
> library(chron)
> excel.dates <- seq(40179.0 + 1/6, 40180.0 + 1/6, 1/6)
> orig <- chron("12/30/1899")
> date.time <- orig + excel.dates;
> time.only <- substr(date, 11, 18)


Found one error in my script above.  Correction:

time.only <- substr(date.time, 11, 18)

Ken



More information about the R-help mailing list