Re: [R] Changing x-axis when dealing with time

From: Ken <katakagi_at_bu.edu>
Date: Mon, 16 May 2011 15:39:06 +0000

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



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Mon 16 May 2011 - 15:41:34 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 16 May 2011 - 15:50:07 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive