Or

x=c("2009-03-09 12:00:00","2009-03-09 13:30:00")

y=data.frame(x)

attach(y)

x=as.POSIXlt(x)

x[1]-x[2]

On Wed, Jun 10, 2009 at 5:04 AM, koj<jens.k...@gmx.li> wrote:
> >
> >
> > I have time data in the following format:
> >
> > 2009-03-09 12:00:00
> > 2009-03-09 13:30:00
> >
> >
>

        [[alternative HTML version deleted]]

______________________________________________
R-help@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.

Reply via email to