i found it it is the function difftime(date1,date2)
thank you gays!!!
________________________________
De : Peter Konings <peter.l.e.konings@gmail.com>
Envoyé le : Jeudi, 6 Août 2009, 11h44mn 09s
Objet : Re: [R] opration / dates in R
Hi,
There are a number of possibilities. Check out the R wiki for an overview of the
available manuals, articles, etc. on working with dates:
http://wiki.r-project.org/rwiki/doku.php?id=guides:times-dates&s=dates
also, consider reading a book or manual to get started - this will save you a
lot of time in the end. See for example the R website for a list of contributed
documentation: http://cran.r-project.org/other-docs.html
HTH
Peter.
wrote:
Hi,>
>how can i use operation + , - , / with veriable format DATES?
>
>for example i have two variable a <- 18/08/2008 and b <- 18/09/2010
and i want to calculate a-b ??
>
>thank you?
>
>
>
> [[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.
>
[[alternative HTML version deleted]]