s-news
[Top] [All Lists]

Dates and Times in S-Plus

To: S-News <s-news@wubios.wustl.edu>
Subject: Dates and Times in S-Plus
From: Kim Elmore <Kim.Elmore@noaa.gov>
Date: Fri, 06 Apr 2007 11:16:32 -0500
User-agent: Thunderbird 1.5.0.10 (Windows/20070221)
I've never much worked with dates and times, but find that I must now do so. I'm doing some very basic EDA and using the GUI to generate some plots. When making plots using the GUI, how do I control the span of the date axis? I'm aware that S-Plus encodes the date in a manner similar to unix/linux, but I don't know how to define things like tic marks in terms of, say hours. For example, if I want a tic mark every hour, how do I declare that? Using command line plots, how would I subset the data such that I plotted only data between, say, 11/29/2007 14:15:00 and 11/29/2007 18:15:00?

All data are currently in a data.frame and the data type for the dates column is timeDate.

I'm using S-Plus 7.0.6 under Windows XP.

Kim Elmore

<Prev in Thread] Current Thread [Next in Thread>