Skip to content
Prev 155340 / 398513 Next

How to preserve date format while aggregating

Here's how the dates look like after the sql-query:

Oav$Date[1:3]
[1] "1991-11-22 00:45:00 CET" "1991-12-13 00:01:00 CET" "1992-02-06 00:45:00
CET"
[1] "POSIXt"  "POSIXct"
[1] 690767100 692578860 697333500
[1] "3226-01-31" "8186-07-07" "1204-04-11"

I wanteded to apply the aggregate function in R instead of in the SQL-query,
because R is much more flexible and faster in manipulating large dataframes.

Erich

 

-----Urspr?ngliche Nachricht-----
Von: Dr Eberhard Lisse [mailto:el at lisse.NA] 
Gesendet: Montag, 8. September 2008 15:43
An: Erich Studerus
Cc: r-help at r-project.org
Betreff: Re: [R] How to preserve date format while aggregating

Erich,

how does the data look, when it comes from SQL?

And why not extract the data with SQL directly, so you don't
have this issue in the first place?

el

on 9/8/08 3:15 PM Erich Studerus said the following:
with