Ben Fairbank
2007-Jan-04 17:42 UTC
[R] Seek general information about time/date storage and functions in R
Hello R List - I have to import Excel files (either as .csv files or using RODBC) into R (2.4.1, Windows) and operate on dates and times (e.g. find minutes between times, change dates to days of week or analyze by weeks of year). The help files for format.Date, strptime, as.POSIX, DateTimeClasses, etc. etc. are informative but perhaps a little terse. I have googled unsuccessfully for a more general description of how R represents times and dates, and the methods (e.g. date arithmetic) for working with them. Can a reader point out such an introduction, preferably on-line? Thank you, Ben Fairbank [[alternative HTML version deleted]]
Duncan Murdoch
2007-Jan-04 17:51 UTC
[R] Seek general information about time/date storage and functions in R
On 1/4/2007 12:42 PM, Ben Fairbank wrote:> Hello R List - > > > > I have to import Excel files (either as .csv files or using RODBC) into > R (2.4.1, Windows) and operate on dates and times (e.g. find minutes > between times, change dates to days of week or analyze by weeks of > year). The help files for format.Date, strptime, as.POSIX, > DateTimeClasses, etc. etc. are informative but perhaps a little terse. > I have googled unsuccessfully for a more general description of how R > represents times and dates, and the methods (e.g. date arithmetic) for > working with them. Can a reader point out such an introduction, > preferably on-line? >There was an article in R-News on just this topic, in the R Help Desk in http://cran.r-project.org/doc/Rnews/Rnews_2004-1.pdf . Duncan Murdoch
Leeds, Mark (IED)
2007-Jan-04 17:53 UTC
[R] Seek general information about time/date storage and functionsin R
I think the best explanation of dates and times is in r-news 2.4.1 but 2.4.1 might be off so someone will hopefully correct me if I'm wrong. -----Original Message----- From: r-help-bounces at stat.math.ethz.ch [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Ben Fairbank Sent: Thursday, January 04, 2007 12:43 PM To: r-help at stat.math.ethz.ch Subject: [R] Seek general information about time/date storage and functionsin R Hello R List - I have to import Excel files (either as .csv files or using RODBC) into R (2.4.1, Windows) and operate on dates and times (e.g. find minutes between times, change dates to days of week or analyze by weeks of year). The help files for format.Date, strptime, as.POSIX, DateTimeClasses, etc. etc. are informative but perhaps a little terse. I have googled unsuccessfully for a more general description of how R represents times and dates, and the methods (e.g. date arithmetic) for working with them. Can a reader point out such an introduction, preferably on-line? Thank you, Ben Fairbank [[alternative HTML version deleted]] ______________________________________________ R-help at stat.math.ethz.ch 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. -------------------------------------------------------- This is not an offer (or solicitation of an offer) to buy/se...{{dropped}}